Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can use jcifs to execute windows cmd to get target-windows device info #8

Open
CptGuo opened this issue Aug 25, 2016 · 0 comments
Open

Comments

@CptGuo
Copy link

CptGuo commented Aug 25, 2016

hi sir, i get a require that to use smb/netbios protocol to execute windows cmd like "systeminfo ipconfig" and get the executed infomation.
i found a python tool can to this link is https://github.com/ShawnDEvans/smbmap ti's can execute windows cmd and get the cmd executed infomation back.

use like :
python smbmap.py -u administrator -p password -d workgroup -x 'systeminfo' -H 192.168.1.1

[+] Finding open SMB ports....
[+] User SMB session establishd on 192.168.30.2...
[!] Error writing to C$, attempting to start SMB server to store output
[] Creating tmp directory
[
] Setting up SMB Server
[*] Ready to listen...

      10381-ZXY

OS : Microsoft Windows Server 2008 R2 Enterprise
OS : 6.1.7601 Service Pack 1 Build 7601
OS Microsoft Corporation
OS :
OS : Multiprocessor Free
ע AutoBVT
ע: Microsoft
ID: 00486-OEM-8400691-20006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant