wget
--directory-prefix=/root/Desktop/
--header="Accept: text/html"
--user-agent="(Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6"
--domains test.com
-e robots=off
--recursive
--no-clobber
--page-requisites
--html-extension
--convert-links
-R gif,jpg,png,css,pdf,mp3,wmv
http://<domain>.com
A place to share links and articles that i have found helpful. This blog tends to be more offensive security minded. Basically it is a collection of notes that I will update periodically. None of this is set in stone, and I could very well be wrong on most of it. Just saying.
Showing posts with label recon. Show all posts
Showing posts with label recon. Show all posts
WMI Commands
- Get-WmiObject -class Win32_Product
- Gets a listing of all the installed software on a machine.
- Get-WmiObject - class Win32_Account
- Gets a listing of all the user accounts
- Get-WmiObject - class Win32_BIOS
- Many times used by malware to determine if the host is a virtual machine or not.
- Set up a remote windows command
- $command = "ipconfig /all >> c:\users\all users\desktop\results.txt"
- $cmd = "cmd.exe /c $command"
- Invoke-Method -class Win32_Process -name Create -ArgumentList $cmd -ComputerName \\Desktopname\
- wmic /node:172.16.27.38 process call create "cmd.exe /c /net user dude /add"
- uses WMIC to add a user on a remote machine
Powershell Fun
- Link Ref
- Invoke-WmiMethod -Class Win32_Process -Name Create -ArgumentList cmd.exe
- Invoke-CimMethod -ClassName Win32_Process -MethodName create -Arguments @{commandline="notepad.exe"}
One Attack Example
- From a powershell command prompt, attacker launches WMIC with the intent of creating a process on the remote machine and adding a user to that remote machine.
- wmic /node:172.16.27.38 process call create "cmd.exe /c /net user dude /add"
- On the remote machine wmiprvse.exe gets the call and will run the commands. To find this attack in Carbon Black, check out this search:
- process_name:cmd.exe AND parent_name:wmiprvse.exe AND childproc_name:net.exe cmdline:user
- Event IDs on the remote machine are:
- 4720; 4722; 4738; 4732
Passive Reconnaissance
Some Manual Searching:
You can find some really good stuff sometimes at a site like Data.com. It is worth it to spend some time here, and search around. Besides, accounts are free.
Tools to Consider:
Discover scripts by Lee baird
Recon-NG
Online Searches
Shodan
Google
Bing
Have I been pwned
Bing
Have I been pwned
Hunter.io
Subscribe to:
Posts (Atom)