Under the Mac, incredibly no good grab bag tool, which makes me very tangled, after all, it is impossible to catch an HTTP package ran to win under the toss. Perhaps some people say that tcpdump such a good tool, how can you not use. To tell the truth, Tcpdump is too complex, I have not seen, plus not what I see, so, it is not so accustomed to use.
And some say, Wireshark, why not? Well, actually I have installed Wireshark, just start the time will start Xquartz, a little slow, of course, this is not the main, but Wireshark function too powerful, so that will not write filter.
Some people say, the diagram is convenient, you can use Chrome's own grab bag tool ah? Before you find this tool, you can try typing in the address bar: chrome://chrome-urls/, you will find Chrome has so many hidden tools, uh. What I'm going to say is one of them: chrome://net-internals/, in events, you can filter, but for HTTPS packets, the content can't be displayed.
More and more Miss Windows, Smartsniff is completely a simplified version of Wireshark, grabbed the package to brush, filtering data is also very convenient.
Of course, Charles under the Mac is really good, try it out, sure enough for the HTTPS packet can also crawl.
Here is a simple tutorial (the actual operation is slightly in and out):
Under the Mac to do development, with fiddler grab bag due to the pain of windows, fortunately there is Charles, to the official website http://www.charlesproxy.com/ Can be downloaded to the latest version (if RMBP is not supported, drag to Retinizer to clear the text)
HTTP Grab Bag
- Open the Charles Program.
- View the IP address of your Mac computer, such as 192.168.1.7
- Open iOS settings, go to the current WiFi connection, set up the HTTP proxy group, fill the server with the IP obtained in the previous step, i.e. 192.168.1.7, port 8888
- iOS devices open the app you want to grab a packet for network operation
- Charles pops up the confirmation box and clicks the Allow button
HTTPS Grab Bag
- Download Charles Certificate http://www.charlesproxy.com/ Ssl.zip, unzip and import to iOS device (send CRT files as email attachments, then click on Attachments on iOS devices to install, or upload to a web drive like Dropbox, download and install via Safari)
- On Charles's toolbar, click the Settings button and select Proxy Settings ...
- Switch to the SSL tab, select Enable SSL proxying, don't worry, don't turn it off before you finish, and the next step.
- This step is different from Fiddler, fiddler Install the certificate will be able to catch the HTTPS URL package, Charles is troublesome, need to be in the SSL tab of the previous step locations form fill in the domain name and port to grab the package, click the Add button, In the pop-up form, host fills in the domain name, for example fill Api.instagram.com,port 443
And then it's like the HTTP grab bag.
---EOF---
Some of the actions above are actually a bit out of the box (HTTPS) Grab packets
1, if the SSL is not set, then you see the SSL interface, there will be an error: SSL proxying not enabled for the host:enable in Proxy Settings, SSL locations, at this time, in the left Right click on the domain name on the side: Enable SSL, OK. (In fact, the 4th part above, but this operation is to simplify the operation, the 4th step above is too troublesome)
2, if this still can not grasp the package, then the official will have a note (http://www.charlesproxy.com/documentation/using-charles/ssl-certificates/):
MAC OS X
Download and unzip the Charles CA Certificate bundle. The bundle contains the Charles CA Certificate file.
Run the Keychain Access utility from the Applications/utilities folder. This tool enables your to manage your certificates.
Choose the "login" keychain then go to the File menu and Choose Import. Choose the. crt file downloaded above, and ensure that the login keychain are chosen in the dropdown menu.
Complete the import and the Charles CA SSL Certificate'll now is trusted for your login account.
Move the Charles Proxy SSL proxying certificate from your login keychain to the System keychain by Drag-and-drop if you WA NT all users on the machine to trust it.
You'll need to quit and reopen Safari to see the change.
GOOGLE CHROME
On Mac OS X. Follow the instructions for Mac OS X above. These instructions only apply on Windows.
Open The Options dialog, go to the ' under the Hood ' tab, then click the ' Manage Certificates ' button.
Go to the Trusted Root Certification Authorities tab and click Import.
Find the Charles-proxy-ssl-proxying-certificate.crt file. On Windows and Linux it are in the Docs directory in your Charles installation directory. On Mac OS X (or if you can ' t find it) you can download and unzip ssl.zip.
Choose the Charles-proxy-ssl-proxying-certificate.crt file, then click Next and Finish, leaving the default options, until You complete the import. Chrome would now always trust certificates signed by Charles.
After importing your can delete the Charles-proxy-ssl-proxying-certificate.crt file if you downloaded it.
---if you are using chrome, you can use it directly/if Firefox, you will be prompted to install/if it is safari, you need to open the Certificate Manager, the certificate just imported to the system (so that all users can use, but all of their own computers, Safari may need to restart the browser
After this, I can finally catch the bag. and the HTTPS packet is no longer just a bunch of garbled characters. Black Black
Mac Grab Kit Charles