IP Adressen mal anders :-)

Das Forum fĂĽr den Linux-Pinguin - auch andere Unix-Derivate (*BSD, (Open)Solaris, Apple's Darwin / MacOS X, ...) sind hier willkommen!
Forumsregeln
Das Forum fĂĽr den Linux-Pinguin - auch andere Unix-Derivate (*BSD, (Open)Solaris, Apple's Darwin / MacOS X, ...) sind hier willkommen!

IP Adressen mal anders :-)

Beitragvon Manuel Capellari » Mo 11 Jun, 2001 14:37

hi leute

da mir langweilig war hab ich folgendes perlscript gebastelt:

----cut----
#!/usr/bin/perl -w
# (c) 2001 by manuel capellari (aka lordpeng)
use strict;
chomp (my $ip=<STDIN>);
(my $first, my $second, my $third, my $fourth)=
split (/./,$ip);

print "$first, $second, $third, $fourth
";

my $dotless = ($first * 16777216) + ($second * 65536) + ($third * 256) + ($fourth * 1);
print "your dotless IP is: $dotless
";
----cut----

das programm fragt nach einer IP adresse und rechnet diese dann nach HEX um,
selbstverständlich lässt sich eine solche umgerechnete IP dann immer noch pingen

z.b.: 212.13.45.23 wäre 3557633303

habt spass damit :-)
Manuel Capellari
 

auch was ziemlich cooles.....

Beitragvon zeke » Mo 11 Jun, 2001 17:46

eth0:5 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.157 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:6 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.158 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:7 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.160 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:8 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.162 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:9 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.166 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:10 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.170 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:11 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.173 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:12 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.174 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:13 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.189 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:14 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.161 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

eth0:15 Link encap:Ethernet HWaddr 00:50:BA:C9:00:C8
inet addr:196.15.190.159 Bcast:196.15.190.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x300

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3904 Metric:1
RX packets:84656 errors:0 dropped:0 overruns:0 frame:0
TX packets:84656 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0


-----------------snip-------------------

ist ziemlich cool die maschine ;>

mfg zeke
zeke
 

RE: auch was ziemlich cooles.....

Beitragvon wulfman » Mo 11 Jun, 2001 18:15

212.13.45.23 wäre 3557633303

da merke ich mir aber die originaladresse leichter... besser strukturiert...

mfg
wulfman
_____________
aber lustig isses...
wulfman
 

RE: auch was ziemlich cooles.....

Beitragvon Manuel Capellari » Mo 11 Jun, 2001 19:28

es geht ned ums merken, fĂĽr manche sachen is das sogar brauchbar, z.b. fĂĽr ne webseite, wenn ned gleich jeder die downloadadresse sehen soll und dergleichen
Manuel Capellari
 

RE: auch was ziemlich cooles.....

Beitragvon Manuel Capellari » Mo 11 Jun, 2001 19:41

>da merke ich mir aber die originaladresse leichter... besser strukturiert...
aja, noch was, freu dich auf ipv6 :-)
Manuel Capellari
 

RE: auch was ziemlich cooles.....

Beitragvon wulfman » Di 12 Jun, 2001 17:04

sowieso...

stimmt aber - an sowas wie versteckte downloadadressen hab ich nicht gedacht... hmm..

mfg
wulfman
wulfman
 


ZurĂĽck zu LINUX & UNIX-DERIVATE

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 94 Gäste

cron