Questions tagged [libnet]

Libnet is a generic networking API that provides access to some protocols.

Libnet is a generic networking API that provides access to some protocols.

Homepage: http://libnet.sourceforge.net/

61 questions
0
votes
1 answer

How to build ICMPv6 packet with libnet?

Is it possible to build ICMPv6 packet with libnet? The only functions I see are concerning ICMPv4 ( libnet_build_icmpv4_xxxxx() ). Thank you.
samuelg0rd0n
  • 1,080
  • 2
  • 15
  • 27
0
votes
2 answers

c++ code using libnet not compiling

I'm trying to compile my libnet script and am getting this error: [root@whyme]# gcc -Wall `libnet-config --defines` mysocket.cc -o mysocket `libnet-config --libs` -lpcap -lnet /tmp/ccUPbuVg.o: In function `main': mysocket.cc:(.text+0x1e): undefined…
0
votes
1 answer

Why is server.close() executing earlier than server.on('connection')?

I'm learning the Node.js "Net" library. Can anyone explain to me why in this example server.close() executing earlier than server.on('connection')? I know how to make everything work properly, but I do not understand why the client socket connects…
0
votes
0 answers

Tcp connection with libnet C

For an assignment i have to create a tcp hijack attack and one of the first steps i have to take is sending a TCP packet to a server to get a response with a sequence number. The server responds to rlogin requests, i tested with nping on tcp to get…
0
votes
1 answer

dereferencing pointer to incomplete type ‘struct tcphdr’?

I'm trying to compile "Example 11-9. Source code to the SYNplescan tool" from this NetworkSecurityTools book on Ubuntu 18.04: http://books.gigatux.nl/mirror/networksecuritytools/0596007949/networkst-CHP-11-SECT-4.html But it says error:…
user1095332
  • 403
  • 6
  • 17
0
votes
0 answers

/bin/sh: 0 cannot open ./configure during install libnet-1.0.2a

I have downloaded libnet-1.0.2a.tar.gz and tried to install it with the following steps. Location of libnet-1.0.2a.tar.gz: /usr/nembuild Now unpacking it and changing directory: tar -xf libnet-1.0.2a.tar.gz cd Libnet-1.0.2a The next commands are…
0
votes
1 answer

How to embed and listen data over icmp in order to tunnel connection with using python

i am trying to code one tunnel tool but i could not receive packet from icmp. I uses socket library, is there any one pylibnet or pynet library
Caglar
  • 11
  • 3
0
votes
1 answer

Pylibnet constants

i am introducing myself in the pylibnet library, I want to ask you how i can get the constants imported in this code. import libnet from libnet.constants import * I try help(libnet) but there are nor any answers to my problem. Thank you!!
0
votes
0 answers

Socket receives packet wrong

I have written a simple raw socket which is supposed to receive single ipv4 packets written and assembled using libnet. This is the code for the libnet packet, which works just fine (I think, there was no way to check the actual payload that was…
0
votes
1 answer

ip4 packet assembled as ip6 - libnet

I have written a C-program that creates a TCP/IPv4-packet from the link-layer upwards. The goal of this program was to receive the single packet with an open socket, either raw or just a stream socket. The packet consists of an ethernet header, a…
0
votes
1 answer

libnet that properly calculates checksum on IPV6

I have recently started playing around with libnet and using it to generate IPV6 packets. I am very new at programming, however, I am quite happy with the library. I have one problem with it though. It seems that libnet currently does not have…
VeaEm
0
votes
1 answer

libnet tcp header results to be all zero

I'm writing a few C line of code using libnet and pcap. The purpose is to do a 3-way handshake manually sniffing filtered traffic on my NIC, looking for SYN packet and creating a SYN-ACK response using raw ipv4 socket. I succesfully receive raw SYN…
mrnfrancesco
  • 1,017
  • 8
  • 26
0
votes
1 answer

pylibnet successfully installed,but returned "libnet.so.9: cannot open shared object file: No such file or directory"

1, I installed libnet through "configure;make;make install", it returned success: make[1]: Leaving directory `/data/home/fiontools/pcap/tool/libnet-1.2-rc3/win32' make[1]: Entering directory…
fio
  • 23
  • 5
0
votes
0 answers

Use libpcap and sockets to transmit a packet whenever you receive

I am trying to make a program, so that whenever I receive a packet in an interface from a specific MAC address I want to transmit another packet (the reply packets contained in a pcap file). The program below partially works.It has two…
J. East.
  • 33
  • 6
0
votes
1 answer

undefined reference to libnet-1.0.2a functions, Linux C

i'm using Ubuntu and i'm actually trying to install libnet v.1.0.2a in order to build and write network packets. i'm aware that i'm installing the older version but i'd rather stick with it since it suits me well. the problem is that when i write…
S.Saliba
  • 1
  • 1