Request Useful Shell Snippets

Request Useful Shell Snippets

jakkpotts

User
User ID
80143
Aug 10, 2024
20
47
#CR
120
  • Thread starter
  • Thread Author
  • #1
For txt files formatted as:
{url} user:pass

Search for specific string
grep 'specific_user_or_pass' leak.txt

Extract all URLS
awk '{print $1}' leak.txt | sort | uniq > urls.txt

Extract all Passwords
awk -F' ' '{print $2}' leak.txt | awk -F':' '{print $2}' > passwords.txt
 
Back