| | |
Packet with no source IP address
Thread Solved |
•
•
Join Date: May 2009
Posts: 25
Reputation:
Solved Threads: 6
No source address? No -- even a broadcast address is an address. A different source address? Yes. That's packet-spoofing, something that's used to cause trouble (a 'smurf' packetstorm, for instance; google "Smurf Attack"). You can play with that over your own LAN, but *don't* let it out onto the Internet.
I have finally found the solution how to do this. It's possible if you use the WinPcap. You can use this to generate signals on your NIC, "to send your own packets". With use of this headers:
I can post whole source code how to create an UDP packet and send it.
/* 4 bytes IP address */
typedef struct ip_address{
u_char byte1;
u_char byte2;
u_char byte3;
u_char byte4;
}ip_address;
/* IPv4 header */
typedef struct ip_header{
u_char ver_ihl; // Version (4 bits) + Internet header length (4 bits)
u_char tos; // Type of service
u_short tlen; // Total length
u_short identification; // Identification
u_short flags_fo; // Flags (3 bits) + Fragment offset (13 bits)
u_char ttl; // Time to live
u_char proto; // Protocol
u_short crc; // Header checksum
ip_address saddr; // Source address
ip_address daddr; // Destination address
// u_int op_pad; // Option + Padding
}ip_header;
/* UDP header*/
typedef struct udp_header{
u_short sport; // Source port
u_short dport; // Destination port
u_short len; // Datagram length
u_short crc; // Checksum
}udp_header;![]() |
Similar Threads
- Please How to get and count a value of an attribute from a line full of attributes (XML, XSLT and XPATH)
- How to get and count a value of an attribute from a line full of attributes (XML, XSLT and XPATH)
- manipulating return address (C)
- How to find source IPAddress of packet ? (C#)
- ARP keep sending wrong IP address (C)
- help!how to write file into notepad in VB? (Visual Basic 4 / 5 / 6)
- MAC address program??? (C++)
- Store files data into specified memory (RAM) address - help? (Assembly)
- NETGEAR DG834G - help? (Networking Hardware Configuration)
- problem with intrusion detection on norton internet security 2005 (Windows Software)
Other Threads in the Network Security Forum
- Previous Thread: Bush White House Doesn't Have to Comply With Court Order
- Next Thread: MSSQL server remote access over VPN and direct
Views: 751 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Network Security
2008 adobe advice antivirus apple barackobama blackmail botnet browser business china civilliberties crack crime cybercrime daniweb data database dataloss dataprotection development email emailretention encryption europe exploit facebook forensic fraud gadget gmail google government hack hacker hacking hardware homelandsecurity hotmail ibm identitytheft idtheft information internet iphone kaspersky kernel law linux malware mcafee mckinnon microsoft military mobile nasa nationalsecurity network news obama password passwords paypal pentagon phishing phone politics privacy realplayer report research safari satnav scam search security skype socialnetworking software softwaredevelopment sophos spam sqlinjection survey symantec terrorism terrorist trends trojan twitter uk usb virtualization virus vulnerability web wireless worm yahoo youtube





