RE: alternative way of addressing
From: Eric Polin (sideone@netwolves.com)Date: 01/30/02
- Previous message: bonnie temple: "RE: Snow White Comes again ???"
- In reply to: Bnyec: "RE: alternative way of addressing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Eric Polin" <sideone@netwolves.com> To: <security-basics@securityfocus.com> Date: Wed, 30 Jan 2002 11:28:27 -0500
i couldnt get this program to compile, so i wrote a quick sh script to do
the same thing.
!/bin/sh
# change your ip to DWORD
# another quickie by eric polin.. sideone@netwolves.com
echo "what is your ip address? "
read OC1
IP1=`echo $OC1 | awk -F. '{print $1}'`
IP2=`echo $OC1 | awk -F. '{print $2}'`
IP3=`echo $OC1 | awk -F. '{print $3}'`
IP4=`echo $OC1 | awk -F. '{print $4}'`
echo -e "your ip address in dword is: \c"
expr \( \( \( \( \( $IP1 \* 256 + $IP2 \) \* 256 \) + $IP3 \) \* 256 \) +
$IP4 \)
enjoy,
eric polin
--- Jean-Frangois_Asselin <jfasselin@micrologic.ca>
wrote:
> http://www.pc-help.org/obscure.htm
>
Using info from above URL i wrote a small program
that will do conversion from decimal to IP and back
http://nocon.darkflame.net/files/ip2d.c
-NC
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
- Previous message: bonnie temple: "RE: Snow White Comes again ???"
- In reply to: Bnyec: "RE: alternative way of addressing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|