Gui Posted March 18, 2012 Share Posted March 18, 2012 (edited) Using the pcap UDF, I'm trying to read / interpret packets that I pick up. In pcap, it will return some binary data. However, if you choose to save via the _PcapSaveToFile, and open the .pcap file in Notepad, you're able to see the data like so:http://pastebin.com/WFSh3atFUnfortunetly, trying to read the file with FileRead will only return the first few chars (Ôò¡ in this case). Is there anyway to read all the data clearly, especially where it shows actual text? Thanks!GUIPS: pcap UDF I'm referring to: http://opensource.grisambre.net/pcapau3/ Edited March 18, 2012 by Gui Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2012 Developers Share Posted March 18, 2012 did you open the file in binary mode for reading? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Gui Posted March 18, 2012 Author Share Posted March 18, 2012 Even if I try to read in binary, then re-convert, it doesn't make a difference. I even tried reading by line, but for the lines that have those weird chars, it can only interpret the first few for some reason, like I showed in OP. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now