Using wireshark along with ns3 - wireshark

I am searching google to learn how to use wireshark along with ns-3, but I am confused. As I see it needs specific file to work. How do I make this specific file with ns-3?

Your question is still unclear. I assume you need the following lines of code.
PointToPointHelper p2p;
p2p.EnablePcapAll("filename"); //filename without .pcap extention
It will create a file in the main directory of ns3. You can analyze this file using tcpdump or wireshark.

Related

Identify old dos system file type and decode it into text file

I have pick up an old dos system from my friend, and I need to import the data into SQL, but before importing the data, i need to decode it into a readable text file, but I failed to do so. I have try several stuff:
file command in ubuntu terminal, it said "data"
Use online trid and it said macbin(MacBinary 1)
Tried bin2hex, but couldn't unhex it
Tried some online macbin to hex, no luck as well
Tried to open in macOS, but it keep extracting files
bin2hex said, nothing here
stuffitexpander.... Doesn't recognize...
This is the file that i need to decode
https://gofile.io/?c=wdbs6A
Please let me know if you need the original program.
I think they are just some database files.
Use this site for explanations. they even have a file analyzer - showing you the data inside.
You will need to rename the files to .db extension instead of .ocm.

how to edit a pcap file by using lua

I can read any field from a pcap file by using lua script.I want to edit some fields,for example,the ack numbers and ip address.Can lua script handler this and how?
You can read and write files using Lua's Input and Output Facilities
For simple examples search the web and read https://www.lua.org/pil/21.2.html
For many common file formats you'll find specific io modules online. If not you have to write your own code, implementing the file format specificiation.

How do I add files to my app and find their path to access them

I have some txt files that store some important data for my app. Due to its nature I want them to be in external text files. Currently i plan on reading them using a streamreader that reads the txt line by line. However, i don't know where to put my txt files, so i can access them in my streamreader which requires their path. Ive seen examples of using NSBundle.mainBundlepathforResource. However, I'm not really sure what a Bundle is or how to place my files there in the first place.
You can use NSBundle. Here's another answer that shows how to create and use bundles: https://stackoverflow.com/a/23884501/1228075

Read fm file in netCobol Fujitsu

I have multiple *.fm files. if I open some file in notepad, in the header I can see "rmkf"
I only want open this file.
I tried to connect with the jdbc driver but it says HXTT need the file data structure (FD) have also tested with an application developed in Delphy that extracts some data but not all
I do not know what else to investigate
thanks!
Looking at the extension, is this a framemaker file?
http://www.fileinfo.com/extension/fm

What is contacts.edb structure?

Windows Live Messenger creates a number of files like
C:\Users\USERNAME\AppData\Local\Microsoft\Windows Live Contacts{ae86acef-5a45-4447-bc32-521fc9289e1a}\DBStore\contacts.edb
and stores contacts within. When looking on such files, it is obviouos that they have strict structure. However, I failed to find the description of contacts.edb structure in internet.
Does anybody knows this structure? Or maybe there are some parser sources available? (I do not need a exe for that, I know about NirSoft one).
There is a project called libesedb which might be of use here.
The contacts.edb file is an ESEBD file.

Resources