Some
Advanced Things
whoami:
echo
%username%
where
I am :
echo
%path% (pwd?)
What
is the computer name:
echo
%computername%
How
many file in a directory (The “find”):
dir
/b c:\somewhere| find /c /v “”
Starting
a services :
sc
start some-services
Finding
specific file in a directory:
dir
/b /s c:\ | find “notepad.exe” or
dir
/b /s c:\some.txt
The
findstr command used for find specific line:
findstr
“user” c:\username\password\pass.sql
Note:
“findstr /? “ for more help.
How
many line in file:
findstr
/s “something” c:\username |
find /c /v “”
More
Advanced
Users
management and Networking:
PLAYING
WITH USER:
net
See
all current user name:
net
user
Add
user:
net
user username password /add
Delete
the user:
net
user username password /delete
See
the all current User group:
net
localgroup
Add
user to administrator group :
net
user localgroup Administrators username /add
Delete
the user from administrator group :
net
user localgroup administrators username /delete
Running
command as administrator:
runas
/u:administrator c:\windows\windows32\nc.exe
See
the Account policy:
net
accounts
set
a account policy :
net
accounts /MINPWLEN=50 /MAXPWAGE= 30 /MINPWAGE=3
PLAYING
WITH NETWORK:
SMB
share:
net
use \\ip.ip.ip.ip passw0rd /u:backdoored?(us3rna3m?)
net
use \\ip.ip.ip.ip\c$ passw00rd /u:administrator
share
path:
net
share (See what path to share)
File
Transfer protocol:
ftp
microsoft.com
IPCONFIG
(linux ifconfig?):
ipconfig
(see the network information and ip address)
ipconfig
/all (See the all network information with all interface).
To be continued...
Tidak ada komentar:
Posting Komentar