How aircrack-ng captures packets? Is it use wire shark at back end? [closed] - packet-capture

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 10 days ago.
Improve this question
I am using aircrack-ng for packet capturing. I want to see the packet size and packet detail of every client aircrack-ng is sniffing. How it is possible using aircrack-ng? Is there any code inside airodump-ng which gives me that detail?

As for your title question
"How aircrack-ng captures packets? Is it use wire shark at back end?"
aircrack-ng uses the libpcap library for packet capture and basic filtering, as does wireshark (via its dumpcap child process) and tcpdump.
You can see the numerous calls to pcap via the source code here:
http://trac.aircrack-ng.org/wiki/Sources
http://trac.aircrack-ng.org/browser#trunk/src
$ svn co http://svn.aircrack-ng.org/trunk aircrack-ng
$ cd aircrack-ng/
$ grep -nr pcap ./* | wc -l
398
398 references, all over the place.
$ grep -r --files-with-matches pcap ./* | grep "src/.*\.[ch]"
./src/besside-ng.c
./src/include/ethernet.h
./src/airdecloak-ng.h
./src/besside-ng-crawler.c
./src/packetforge-ng.c
./src/tkiptun-ng.c
./src/wpaclean.c
./src/pcap.h
./src/airdecap-ng.c
./src/airodump-ng.c
./src/airodump-ng.h
./src/airdecloak-ng.c
./src/aircrack-ptw-lib.c
./src/airtun-ng.c
./src/aircrack-ng.c
./src/wesside-ng.c
./src/makeivs-ng.c
./src/aireplay-ng.c
./src/osdep/file.c
./src/osdep/airpcap.h
./src/osdep/osdep.h
./src/osdep/airpcap.c
./src/osdep/cygwin.c
./src/osdep/linux.c
./src/airbase-ng.c
./src/ivstools.c
For more info on libpcap:
http://www.tcpdump.org/

Related

How to add NAPT/PAT rule? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
My goal is to forward packets from an interface to another interface without source port conflicts using the right feature, NAPT.
I couldn't find how to add a NAPT rule (Network Address Port Translation or also known as PAT) with iptables and nftables.
More interestingly, searching combinations of PAT NAPT iptables/nftables/netfilter doesn't give anything relevant. Even when they mention PAT/NAPT, they do a simple IP masquerading...
Edit
It seems iptables's NAT does implicit port translation... somehow it's obvious for everybody even though it isn't written anywhere.
The definition of NAT is however pretty clear and doesn't include a layer 4 alteration. Whatever...
By using iptables, masquerade is a choice but may not fullfill your goals. The better method is to extend netfilter and iptables by writing your own iptable operation. I do this some years before, here is my github code, hope that can help you.

AS2 Connection via PI [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I want to create an AS2 connection with my customer by using SAP PI tool. But PI is in internal network. We also have a DMZ machine. How can I make the AS2 connection between each other ?
Thanks
We have a similar integration.
We use Run Operation System command After message Processing, under the processing tab in communication channel (file).
Basicaly: write the file on the internal network with the file communicaiton channel that then launch a SH (or BAT) script launching the AS2 transfert to the outside.
Hope it can help. We have multiple integrations using this on i5/OS and Windows.
Regards,
M
Edit: added the proper CC's option name

Rsync slow over internet [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Rsync took over 10 hours today to transfer a 1GB file over the internet (from one Raspberry Pi to another. Are there any ways to speed this up?
rsync uses ssh to transfer files. Therefore what you want to do is speed up ssh. You can do that by changing the encryption method to a faster one such as arcfour or blowfish. You can do this by using the -e flag. For example
rsync -avt -e "ssh -c blowfish" user#dest:/remote/path /local/path
Personally I use blowfish but here is a benchmark I found real quick. Keep in mind this isn't going to make rsync super fast all of a sudden, but it could help if the bottleneck is the CPU on either side which is likely with embedded machines. Also keep in mind that your build of ssh might not have all the ciphers you see used elsewhere.

Connect three monitors to the same workstation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have an Nvidia Quadro 600 card in my workstation and was curious if there was any way I could use three monitors with the card without using external graphics hardware (Matrox display2go et al.). It has 1 Dual Link DVI-I port and 1 DisplayPort port. I'm using two monitors, one with each port but I would like to have a third one.
Is that possible somehow?
Thanks
You can. I have seen some thin client concept which connects through an ethernet cord. Monitor gets a power adapter, just like for mobile. I have seen this setup with a D-link manufacturer.. But it in fact works for any machine.
This is the solution to connect the third monitor: http://www.amazon.com/StarTech-com-External-Video-Monitor-Adapter/dp/B0086359SG/ref=sr_1_2?s=electronics&ie=UTF8&qid=1388206061&sr=1-2&keywords=usb+3.0+to+dvi
I have plenty of USB 3.0 so that is the best option.
Thank you anyway

Multi stream SCP to transfer large amount of small files from EC2 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am using scp to download millions of small files (100 - 1000 kb) files from my EC2 instances. scp seems to transfer one file at a time and does not utilize fully my 1 gbps connection.
Is there a more efficient way to download the files? For various technical reasons, achieving and downloading is not an option.
Take a look at rsync. It can also work through ssh.
If you are still able to use tar, but not able to create a tarball on the remote host, you can try something like:
ssh ec2instance "tar c /path/to/source" | tar x -C /path/to/destination
You can use the v option to tar, or the pipe viewer to get feedback on the transfer.
If the above is not an option either, try running several (a dozen) scp in parallel to reduce the effect of the overhead induced by many small files.
(Also make sure that the filesystem is not the bottleneck.)