Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add list dev tools and shell escape #29

Open
mohinparamasivam opened this issue Jan 1, 2019 · 2 comments
Open

Add list dev tools and shell escape #29

mohinparamasivam opened this issue Jan 1, 2019 · 2 comments

Comments

@mohinparamasivam
Copy link

Example from linuxprivchecker.py.. ur script is more user friendly.. if added this feature it will be useful.. Available dev tools like python,perl,awk etc. And include shell escapes

print
print "[*] ENUMERATING INSTALLED LANGUAGES/TOOLS FOR SPLOIT BUILDING...\n"

devTools = {"TOOLS":{"cmd":"which awk perl python ruby gcc cc vi vim nmap find netcat nc wget tftp ftp 2>/dev/null", "msg":"Installed Tools", "results":results}}
devTools = execCmd(devTools)
printResults(devTools)

print "[+] Related Shell Escape Sequences...\n"
escapeCmd = {"vi":[":!bash", ":set shell=/bin/bash:shell"], "awk":["awk 'BEGIN {system("/bin/bash")}'"], "perl":["perl -e 'exec "/bin/bash";'"], "find":["find / -exec /usr/bin/awk 'BEGIN {system("/bin/bash")}' \;"], "nmap":["--interactive"]}
for cmd in escapeCmd:
for result in devTools["TOOLS"]["results"]:
if cmd in result:
for item in escapeCmd[cmd]:
print " " + cmd + "-->\t" + item
print

@rebootuser
Copy link
Owner

Good suggestion, will add.

@mohinparamasivam
Copy link
Author

Good suggestion, will add.

I really love your script..helps to save time on enumeration... thnx a lot dude. Ur script is well organised and beautifully made...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants