Join us at IRC!
It is never to LATE to become what you never WERE.
Wednesday, May 23, 2012
Navigation
Members Online
Total Online: 57
Web Spiders: 41
Guests Online: 53
Members Online: 4

Registered Members: 70172
Newest Member: kosova
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Coding an Ip spoofer

redhothacker
Member

Posts: 131
Location: Caribbean
Joined: 28.01.07
Rank:
God
Posted on 20-12-10 04:20
Does anyone know how to code an ip spoofer? Peferably in java,c#,c or c++?
Author

RE: Coding an Ip spoofer

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Hacker Level 2
Posted on 20-12-10 08:59
For this you will need to either use proxies, or craft your own packets to send.

There are plenty of ways to craft your own packets.
Java
Python

Hping can also aid in spoofing.


kbcarte.wordpress.com
Author

RE: Coding an Ip spoofer

RaV3Nx
Member

Posts: 4
Location:
Joined: 19.12.10
Rank:
Newbie
Posted on 20-12-10 12:04
redhothacker wrote:
Does anyone know how to code an ip spoofer? Peferably in java,c#,c or c++?



Here's a article I enjoyed on the subject http://crack0hack.wetpaint.com/page/IP-spoofing
Author

RE: Coding an Ip spoofer

j4m32
Member

Posts: 81
Location:
Joined: 01.05.10
Rank:
God
Posted on 20-12-10 23:30
Sorry to say it, but the OP could have googled for half of the answer to this... but anyway...

As far as I am aware, a proxy doesn't exactly serve the same function as "IP Spoofing" but rather does make it a little harder to find the end clients' IP address.

Assuming you are talking about IPv4, and know a little bit about IPv4 structure for a datagram. (If not see Wikipedia for a diagram or look for the structure definition which I think is in the header file for winsock.h (Windows) or sys/socket.h (UNIX/Linux) in C/C++)

In Java there is no "native way" of modifying packet headers as the virtual machine is abstract of the implementation for the platform underneath.

However your answer lies in using raw sockets to change the "Source IP" and maybe even the MAC field(s) of the IP Header. You'll probably end up writing this in C / C++, which you could also write as a library which you could interface with Java (I am lead to believe).

Link that maybe useful: http://www.citi.umich.edu/u/provos/security/ipspoof.1

Hope this helps!

Jim,
Author

RE: Coding an Ip spoofer

fuser
Member



Posts: 959
Location: in front of a computer (duh)
Joined: 05.04.07
Rank:
HBH Guru
Posted on 21-12-10 03:01
I don't think Java would be a good language for this kind of applications, and since I'm a java nut (get it?) it's a bit of a bummer.

I once asked this kind of question at a different forum, although the application I had in mind was just to generate and ping the IP's generated by the application, and they informed me that since Java was designed to be hardware-independent , it's going to be hard to write an application that will work directly with your ethernet card, so unless you have a hardware library installed as well.

But since techb has already provided you with the answer, you might as well take a look at the code and see how it's done. I'd recommend you have some knowledge in network programming in Java, though.










Telling modern Internet users to stop whining is like telling them to stop breathing — it seems unrealistic and inhumane. Paul Lutus

catinthecpu@hotmail.com
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.