19 lines
352 B
Text
Executable file
19 lines
352 B
Text
Executable file
#!/usr/bin/r2awk
|
|
BEGIN {
|
|
arch="x86"
|
|
file="/bin/ls"
|
|
if(ARGV[1]=="help") {
|
|
print("Help message")
|
|
exit(0);
|
|
}
|
|
|
|
code=dis(read("entry0", 8))
|
|
print ("code: ",code)
|
|
|
|
name=prompt("Search string: ");
|
|
count=split (search_str(name),results,/\n/)
|
|
print("Count: "count)
|
|
for(n=1; n<count; n++) {
|
|
print(n"--- "results[n]" : "string(results[n]))
|
|
}
|
|
}
|