Request Useful Shell Snippets

Request Useful Shell Snippets

jakkpotts

User
User ID
80143
Aug 10, 2024
17
37
#CR
109
  • 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
Top Bottom