Posts

Wordpress Reverse Shell

Image
Wordpress Reverse Shell This post is related to WordPress security testing to identify what will be possible procedure to exploit WordPress by compromising admin console. We have already setup WordPress in our windows 7 machine. Table of Content 1) Metasploit Framework 3) Upload PHP reverse shell 4) Getting reverse shell connection Requirement: Host machine: WordPress Attacker machine: Kali Linux WordPress Credential: admin: password Let's begin 1) 1st Method  The site which we are going to test is: i login into the wordpress admin Now i check upload the reverse shell (PHP) using metasploit BOOOOOOM : I got the interactive shell of windows 7 machine Let's breach in another way 2) 2nd Method I have already done login into wordpress using admin and password So, Create a PHP code file using msfvenom Now Go to the Apprereance -> Theme editor -> 404.php templetes past a php code ...

Ted VULHUB walkthrough (It was fun though)

Image
Ted VULHUB walkthrough (It was fun though) Penetrating Methodology: Scanning NMAP Enumeration Browsing the website Burpsuite  Exploitation Netcat Privilege Escalation Sudo permission for the apt-get command Let's Breach the BOX    I scan the Network with nmap and found the box in 192.168.234.136 IP (that was quick) Quick nmap scan and  the result was fast with 80 port open with apache 2.4.18 and don't found any interesting thing that could be exploited.so i try surfing the in browser.. I got login form       and i quickly check the username and password as admin,root and other possible combination and that doesn't work and i think of intercepting the traffic using burpsuit The password hash is incorrect.hmmm, seems like it is taking password in hash form and the username is correct..    I tried some common hash and sha256 works for password as admin (encode the admin in sha256 a...

Apache log Poisining

Image
Apache log Poisining : This turorial is valid if an admin have done bad coding in php to get file ( the vulnerability is in LFI (local file inclusion)) and the poising the access.log file of apache Let's Breach the machine : The victim machine is ubuntu: 192.168.1.6            From victim computer as index.php seems grep the file and include in the browser The index.php is in the /var/www/html and the apache service is running and give the permission of 775 with -R to  /var/log/apache2 file In the attacker computer : as i use parrot os    See the log file of   http://192.168.1.6/?file=/etc/var/apache2/access.log  The result will be we see the access.log file from apache folder which is obiviously  a LFI vulnerability and if we  see this type of vulnerabiltity then we can get the remote code execution using below technique Let's intercept the traffic in Burp and we can se...

A walkthrough from VULHUB -- > Skytower

Image
A walkthrough from VULHUB -- > Skytower  Credit goes to Telspace Systems who made this machine..  :) Task:  To Enumerate the Target Machine and Get the Root flag.txt Penetration Methodologies Network Scanning Netdiscover Nmap Scan Enumeration Browsing HTTP Service Sql-Injection Setting proxychains to connect to ssh Getting ssh connection using credentials Exploitation Enumerating login page -> getting login credentials Privilege Escalation Using su permissions (accounts)  Walkthrough IP address discover  Using nmap i found the host IP : Now we have the target machine IP.It's time to have fun penetrating this box using our mindblowing skills...ohhh yes ... :) using Nmap : :: nmap -sSVC -S 192.168.1.9 -o nmap nmap  is the output file of nmap and SVC and A you can be guided by nmap As, the nmap run it's script let's surf the in browser whether it have server or it There was noth...