Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[Tut] Prini Pro- How to Sniff packets with your iDevice

Packet Sniffing with Pirni Pro

Ever wanted a portable packet sniffer for easy, quick access on the go? Well, you're in luck! Pirni Pro is the iPhone's first GUI Packet Sniffer. What it does is simple. It connects to the local router and intercepts all outgoing traffic from the users on that network where it is recorded, then forwarded back to the router.

Now, This may seem intimidating but let me assure you it is very easy to get the hang of.


How to download

The app is hosted by BigBoss and Cydia store for $1.99. There are alternative sources (xSellize.com and h7v.org) that offer the app for free, but it's always good to support the developer.

Sniffer

The GUI makes this app very easy to use without sacrificing power. The home page should look something like this

[img=450x600]http://i1103.photobucket.com/albums/g463/roflkitties/IMG_0412.png[/img]

Now allow me to explain these functions.
1) Source IP: By default, 192.168.1.1 This is the default address for connecting to your router. Meaning, it will grab the packets of the router your currently connected to.
2) Destination IP: This is the IP you will grab packets from. By default, it is 255.255.255.255, meaning it will grab packets from all devices on that network. For more specific results, enter the IP of the device here.
3) BPF Filter: A BPF (or Berkly Packet Filter) is applied to filter out useless packets. In most cases, this should be left as default.
4) Save to File: To toggle whether or not to save the dump file. Should always leave “On” because the dump file can have information not gathered by Pirni.
5) Dump File: Location of dump file.
6) Regex Option: Possibly the most useful function this app has to offer. Chooses what the packet will grab and displays in the live feed (I.e. Emails, logins, credit card numbers, ect.) This will be explained in greater detail later on in the tutorial.


Live Feed

The app is pretty straight forward, just choose Start and it will begin the sniffing process and display results in the live feed:


[img=450x600]http://i1103.photobucket.com/albums/g463/roflkitties/IMG_0415.png[/img]

Settings

This is where you configure your Regex options. It comes with 3, basic codes but those won’t get you very far. The “+” button at the top corner of the screen is where we will add our new Regex:

[img=450x600]http://i1103.photobucket.com/albums/g463/roflkitties/IMG_0414.png[/img]

A simple Google search will find you more Regex than you’ll ever need, but here are some I fine useful:

Code
Title: Email Address
Regex: \b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
Description: Regex to grab email address’s
Code
Title: General SQL Queries
Regex: (SELECT\s[\w\*\)\(\,\s]+\sFROM\s[\w]+)| (UPDATE\s[\w]+\sSET\s[\w\,\'\=]+)| (INSERT\sINTO\s[\d\w]+[\s\w\d\)\(\,]*\sVALUES\s\([\d\w\'\,\)]+)| (DELETE\sFROM\s[\d\w\'\=]+)
Description: This will match the following SQL Queries (SELECT, UPDATE, INSERT and DELETE)
Code
Title: Website URLs
Regex: (http://|)(www\.)?([^\.]+)\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$
Description: This will find websites that users are viewing
Code
Title: Phone Number Capture
Regex: ^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$
Description: This Regex can be used display any Phone Numbers that are Captured


Dump File

In many cases, the live feed will display less information than actually gathered. In these cases, we revert to the dump file. By default, it is located in “/var/tmp/log.pcap”. With this file you can later get information from it using other packet analyzers, such as wireshark. You can even get some information (such a website URLs and rarely logins) with a text editor and iFile.

there is already more then 5 tuts for this in the sub forum alone.
Really. I did a search for Pirni and nothing came up... besides the non GUI version
So Can I use this to packet sniff server side games FOR my iphone?
(Sep 12, 2011 04:58 PM)Today Wrote:  So Can I use this to packet sniff server side games FOR my iphone?

If you mean sniffing packets sent between your iphone and the server, then no. This app is a type of Man in the Middle attack. However, if it was another idevice on the same network, then it should work fine.
Sir, this is a great tutorial and all, but I prefer to use pirni thru terminal. Main reason, Pirni Pro has given me shitloads of problems.
I agree with Grin, it's good and all; but the terminal is always more reliable.
If you use the terminal app, check out pirni-derv
I made this tutorial mostly because i saw someone in another thread requesting it (a video tutorial, but i figured this would be just as good). Also keep in mind that this is my first Tutorial, so any suggestions im up for :P


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Jailbreak] by x_xJul 6, 2021 11:13 AM 0 141 Jul 6, 2021 11:13 AM
Last Post: x_x
[Jailbreak] by SereniteeSep 23, 2017 05:25 PM 1 220 Sep 23, 2017 05:25 PM
Last Post: /wrists
by Christmas.May 10, 2017 03:15 PM 8 284 May 10, 2017 03:15 PM
Last Post: Christmas.