Commit Graph

591 Commits

Author SHA1 Message Date
Matt Graeber ce3b21685a Bugfix #92: perform OS check when importing NtCreateThreadEx 2015-12-14 16:40:09 -08:00
Harmj0y 9ffc26af70 Added admin rights check for existing Privesc Pester tests 2015-12-14 19:33:15 -05:00
Harmj0y 5690b09027 Get-NetDomain now not called if -ComputerName or -ComputerFile are passed for meta functions, in order to prevent failure when running on a non-domain joined machine
took out FQDN Pester tests from Recon.tests.ps1 that used $env:userdnsdomain
2015-12-14 19:01:10 -05:00
Harmj0y e2993b63aa Modified Tests/Privesc.tests.ps1 to ensure file artifacts are not left on disk. 2015-12-14 18:19:17 -05:00
Harmj0y a235313996 Modified Tests/Recon.tests.ps1 to ensure file artifacts are not left on disk. 2015-12-14 17:34:12 -05:00
Matt Graeber 7f6d3a4565 Fix Invoke-Shellcode OS architecture detection
Fixes issue #70
2015-12-14 11:02:14 -08:00
Matt Graeber 93a71b037c Adding PollingInterval param to Get-Keystrokes
Incorporates idea from @obscuresec in issue #50.
2015-12-14 09:11:05 -08:00
Harmj0y a336562b70 Added Invoke-DowngradeAccount to set an account to use reversible encryption. 2015-12-11 14:58:07 -05:00
Harmj0y a0b95c36b4 Domain local group query fix.
Added ConvertFrom-UACValue to convert binary UAC values to human readable format.
Corrected logic in Set-ADObject.
2015-12-11 10:21:39 -05:00
Harmj0y e44df184a8 Start of Recon/PowerView Pester tests 2015-12-03 21:57:41 -05:00
Harmj0y c143dc6885 Privesc/PowerUp Pester tests 2015-12-03 21:57:26 -05:00
Harmj0y 8ab8c49a0d Added ./Privesc/ folder that integrates PowerUp.ps1
Updated README.md's
2015-12-03 21:56:08 -05:00
Harmj0y 5fb690518d Integration of PowerView into ./Recon/ 2015-12-03 21:50:45 -05:00
Matt Graeber 729e9ca267 Removing Invoke-ShellcodeMSIL from psproj file 2015-11-09 10:58:52 -08:00
Matt Graeber 62bb142a68 Excluding the Tests folder from being loaded as a module 2015-11-09 10:57:19 -08:00
Matt Graeber c03965c8f9 Adding Pester tests for CodeExecution module 2015-11-09 10:56:34 -08:00
Matt Graeber a78b40429e Revert "Excluding the Tests folder from being loaded as a module"
This reverts commit a0ab599810.
2015-11-09 10:52:41 -08:00
Matt Graeber a0ab599810 Excluding the Tests folder from being loaded as a module 2015-11-09 10:52:23 -08:00
Matt Graeber aae81ddfe5 Adding -DoNotZeroMZ for testing 2015-11-07 20:26:08 -08:00
Matt Graeber 992f980022 Removed extraneous parameters
Removed extraneous parameters

Removed the following extraneous parameters:
-PEPath
-PEUrl

The functionality they provided can be easily replicated in code outside
of Invoke-ReflectivePEInjection. i.e. it should be up to the user how
they might want to download a PE before loading it. That should not be
dictated by Invoke-ReflectivePEInjection.
2015-11-07 20:00:22 -08:00
Matt Graeber b8e831e4f9 Revert "Removed extraneous parameters"
This reverts commit 0eb520e31f.
2015-11-07 19:50:05 -08:00
Matt Graeber 0eb520e31f Removed extraneous parameters
Removed the following extraneous parameters:
-PEPath
-PEUrl
-ComputerName

The functionality they provided can be easily replicated in code outside
of Invoke-ReflectivePEInjection. i.e. it should be up to the user how
they might want to download a PE before loading it. That should not be
dictated by Invoke-ReflectivePEInjection.
2015-11-07 20:25:29 -05:00
Matt Graeber 17bfa4e276 Fixed a casting bug 2015-11-06 13:31:58 -05:00
Matt Graeber 18b7a10f89 Removing Invoke-ShellcodeMSIL
This was only ever intended to be a PoC. I'll bring this back if
requested but it exhibits duplicate functionality.
2015-11-05 13:26:05 -05:00
Matt Graeber 641eff706e Test: Ensure all scripts are not LE Unicode encoded 2015-11-05 10:36:17 -05:00
Matt Graeber d1145e0540 Re-import Invoke-Shellcode.ps1 2015-11-05 10:34:26 -05:00
Matt Graeber 81b57738ab Adding Visual Studio 2015 project file
Those who wish to load this project into VS 2015 with Adam Driscoll's
PowerShell VS extension may now do so.
2015-11-05 10:33:53 -05:00
Matt Graeber 5065810c07 Removing Metasploit integration from Invoke-Shellcode
This should have only ever been a shellcode runner. Those wishing to
integrate this with Metasploit should generate a shellcode payload with
msfvenom.
2015-11-05 10:31:40 -05:00
Matt Graeber d0fff7b637 Migrating everything back to Invoke-Shellcode.ps1. I'm done making my point now. :P 2015-11-04 14:56:46 -05:00
Matt Graeber 12ce71b9f4 Normalizing all files to ascii encoding 2015-11-04 13:48:27 -05:00
Matt Graeber 2dd1f5920d Revert "Normalizing all files to ascii encoding"
This reverts commit 5a812ce823.
2015-11-04 13:41:36 -05:00
Matt Graeber 5a812ce823 Normalizing all files to ascii encoding 2015-11-04 13:40:02 -05:00
FixTheExchange e179b2e932 Update Invoke-TokenManipulation.ps1
Removed 2 unnecessary lines.
2015-10-30 12:48:05 -05:00
FixTheExchange 17dd6835b9 Update Invoke-TokenManipulation.ps1
Windows 10 breaks the current version of Invoke-TokenManipulation.ps1 because wininit is now a protected processes.  Rather than hardcoding to a specific process to obtain a SYSTEM token, it's better to enumerate all processes running as SYSTEM and find one that works. I have updated the script to version 1.12 and added logic on lines 1689-1696 to make sure it can successfully grab a SYSTEM token necessary to function.
2015-10-30 11:38:57 -05:00
Matt Graeber 9f78286ea7 Merge pull request #77 from clymb3r/master
Fix for multi-processor systems
2015-09-30 22:07:56 -07:00
clymb3r 235af294ae Fix for multi-processor systems
Fix processor architecture detection for multi-processor systems.
2015-09-30 21:32:04 -07:00
Matt Graeber 03ed2adb56 Adding Invoke-WmiCommand 2015-09-23 15:25:39 -07:00
Matt Graeber 5ce61e40f5 Merge pull request #69 from Invoke-IR/master
Added New-VolumeShadowCopy and Remove-VolumeShadowCopy Cmdlets
2015-08-16 13:02:26 -07:00
Jared Atkinson c29f9b4743 Cleaned up Remove-VSC and New-VSC
- Changed Remove-VSC to have a single mandatory parameter (DevicePath)
- Updated New-VSC to check initial state of the VSS Service and return
VSS to its inital state after execution
2015-07-08 22:27:12 -04:00
Jared Atkinson 25934d4719 Added New-VolumeShadowCopy and Remove-VolumeShadowCopy Cmdlets 2015-07-08 16:57:31 -04:00
Chris Campbell 2153a0a0b0 Merge pull request #68 from hydrajump/get-keystrokes-headings-reorder
Fix for headings in wrong order
2015-05-11 10:13:54 -04:00
Jonathan 0045054ab0 Fix for headings in wrong order
The column headings in the log file are out of order, e.g.

```
"TypedKey","Time","WindowTitle"
"Document1 - Word","[Shift]","01-05-2015:20:53:29:28"
"Document1 - Word","[Shift][Shift]","01-05-2015:20:53:29:31"
"Document1 - Word","[Shift]","01-05-2015:20:53:29:38"
```

The "WindowTitle" should be the first column heading like this,

```
"WindowTitle","TypedKey","Time"
"Document1 - Word","[Shift]","01-05-2015:20:53:29:28"
"Document1 - Word","[Shift][Shift]","01-05-2015:20:53:29:31"
"Document1 - Word","[Shift]","01-05-2015:20:53:29:38"
```
2015-05-10 21:32:14 +02:00
Chris Campbell 5b1a7750c0 URI fix, Proxy Support, UA Update
This fixes the URI bug submitted by @enigma0x3. Thank you for the PR as well! A legacy switch is added in case anyone is relying on this script and an older meterpreter handler. 

Proxy support is added to grab the default proxy by way of a switch.

The default user-agent is grabbed from the registry instead of being a static string.

I tested this on a Windows 7 SP1 (both x86 and 64-bit) and Windows 8.1 (64-bit) with an older handler and an updated one.
2015-04-26 18:32:44 -04:00
mattifestation 130d970c2c Out-EncryptedScript uses FIPS-compliant crypto #60
Thanks, @aconite33 for the suggestion.

- TripleDESCryptoServiceProvider is now used as the crypto algorithm
because it won't break the script when FIPS compliance is enabled in the
registry.
- I actually implemented the InitializationVector parameter
- Cleaned up the output script
- Cleaned up comment-based help
2015-02-26 09:24:45 -05:00
Matt Graeber 8b6f759d12 Merge pull request #62 from clymb3r/master
Update to latest Mimikatz, add sanity checks
2015-02-17 15:41:00 -05:00
clymb3r 2e7dc43edb Update to latest Mimikatz, add sanity checks
Updated to the latest Mimikatz build. Added sanity checks to ensure that
32bit PowerShell isn't being run on a 64bit OS which will cause Mimikatz
to fail.
2015-02-16 23:16:31 -08:00
mattifestation 142afad54e Added parameters back to the original Invoke-Shellcode 2015-02-03 21:47:05 -05:00
mattifestation 59b35d1470 Moved Invoke-Shellcode
These things happen
2015-02-03 21:24:46 -05:00
Matt Graeber a574705ce2 Merge pull request #61 from clymb3r/master
Adding PEBytes parameter
2015-01-26 12:30:28 -05:00
clymb3r 93bc214659 Adding PEBytes parameter
Added PEBytes parameter for reflectively loading a PE file passed as a
byte array to the script.
2015-01-26 09:26:43 -08:00