Running into problems while spoofing IP Address


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Running into problems while spoofing IP Address
# 1  
Old 10-05-2015
Running into problems while spoofing IP Address

I have a machine (IP:192.168.1.185) and i want to send spoofed IP address (e.g. 192.168.1.212) to another machine(192.168.1.213) . I am using a spoofing program for this which uses raw sockets.

Now whenever i pass the parameters(spoofed ip addr and destination) to the output of the program, i never see any packet from Spoofed ip to dest in wireshark. All i see is a packet from an unknown ip source (64.17.17.214) to the spoofed ip (192.168.1.212). I am unable to figure out what is going on Smilie

BTW, im using the UDP Program described in the following webpage

The RAW socket C programming tutorial with working program examples tested on Linux OS
# 2  
Old 10-06-2015
From a quick look at the source code it's apparent that both the source and destination ip's can be spoofed along with the respective port numbers involved.

From this comment line within the code, is states that these parameters can be supplied as command line arguments.

// Source IP, modify as needed, spoofed, we accept through command line argument

# 3  
Old 10-06-2015
Hey hicks, i spoofed the source ip address. But the packets in wireshark show this ip as the destination and an unknown ip as the source. I have included some more details below. I am confused as to why the spoofed source is appearing in the destination field.

Here is the program - rawupd.c - Pastebin.com



My Command :
Code:
./a.out 192.168.1.212 80 192.168.1.213 8080


My machine's IP (Ubuntu) - 192.168.1.185

Spoofed IP (Its actually my Iphone IP) - 192.168.1.212
Destination (My windows tablet) - 192.168.1.213
Here is the screenshot:
Image - TinyPic - Free Image Hosting, Photo Sharing & Video Hosting
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problems running scripts in the background

Hi Could someone offer some help on this problem I've got with running a background process. As part of a script that does a stop/start/status for a piece of software called SAS, the following extract is from part of the start step. My issue is that when the script is run, the control... (0 Replies)
Discussion started by: GavP
0 Replies

2. Shell Programming and Scripting

Problems running script in cron...

Hi all, I have a script running on a Solaris 8 box and the first thing it does it check which user is executing it; if ; then echo "This script must be run as testuser" 1>&2 exit 1 fi This works fine when manually running the script however when adding into that users' crontab it... (1 Reply)
Discussion started by: JayC89
1 Replies

3. Solaris

Problems Running KSH on Solaris 10

Hi, I am currently in the process of testing upgrading from Solaris 8 to Solaris 10. one problem i have encountered is when i am running any of my batch scripts. All my scripts start with #! /bin/ksh so that they will excuted in the ksh shell. but the scripts will not run correctly. The... (3 Replies)
Discussion started by: dshakey
3 Replies

4. Red Hat

Problems with script running with crontab

Hi, I'm trying the backup a few information commands of my Check Point FW (it's on a SPLAT linux machine). This is the script I wrote: #!/bin/bash cd /var/tmp/ file1=netstat_`/bin/date +%d%m%y`.txt file2=ifconfig_`/bin/date +%d%m%y`.txt file3=cpstatos_`/bin/date +%d%m%y`.txt... (2 Replies)
Discussion started by: nirsh
2 Replies

5. Cybersecurity

MAC Address spoofing

There is a question in the SCO section asking for information on how to change the MAC address of a NIC. Is there a valid reason for wanting to change the MAC address? (1 Reply)
Discussion started by: jgt
1 Replies

6. UNIX for Dummies Questions & Answers

Problems running a emcast from cron job

Hi, I have problem with running emcast from cron job (I use emcast because it supports multicasting). I have simple script that looks like this: emcast 234.5.6.1:1234 > file.ts Script is saved like stream.sh When I run it from shell, file is created and some data is written in it. When... (2 Replies)
Discussion started by: goldsmith
2 Replies

7. Shell Programming and Scripting

Problems in running a Perl script via cronjob

I have a very basic perl script that attempts to find if a process is running. If the process is not running then the script is supposed to start the process. If I execute the script from command line it works fine as expected. However if the script is executed via cronjob, the script cannot find... (1 Reply)
Discussion started by: ypant
1 Replies

8. UNIX for Dummies Questions & Answers

Spoofing a From Address in SMTP

Hi, I am currently using Mailx to send a mail message from my unix account via an SMTP relay. This is working ok. However from the recipient end the FROM address they see on mails received is <unix account>@<domain> eg prod@liveserver.com Is there anyway I can spoof this FROM address from the... (1 Reply)
Discussion started by: jimthompson
1 Replies

9. UNIX for Dummies Questions & Answers

problems running a sql loader script

Hi Folks, I have created a number of unix scripts that i can run from the scheduler on a server-side application that we use (Chordiant Marketing Director). All scripts are working except one. This last script is a user load script which first truncates a table and then loads it using a flat... (2 Replies)
Discussion started by: jibbadiah
2 Replies

10. UNIX for Dummies Questions & Answers

Running Script from Telnet - Problems

...so I read "The Pragmatic Programmer" and they stressed the value of learning shell scripting! I'm in a UNIX environment but have a Windows XP workstation. I'm using Telnet to issue UNIX commands. I've done plenty of chmod's, command line ftp and stuff, but written no scripts to this point.... (1 Reply)
Discussion started by: pauljohn
1 Replies
Login or Register to Ask a Question