Darksat IT Security Forums
April 18, 2024, 08:29:27 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Darksat IT Security Forum
From Firewall Support, AntiVirus Questions, Spyware problems, Linux and Windows Security, Black Hat SEO right down to Website Design and Multimedia
 
  Home Help Search Gallery Links Staff List Login Register  

IP Octets

Pages: [1] 2 3 4 ... 17
  Print  
Author Topic: IP Octets  (Read 4337 times)
Joygasm
Expert
****
Posts: 123



View Profile
« on: February 02, 2008, 01:01:52 pm »

This is probably old news to most of you, but hey I just figured it out last night so... Me and a buddy were goofing off in class and realized most applications can use ip's with 3 octets. So, to do this it's w.x.y.z for four octets right? To make it three it would be w.x.y*256+z. Pretty simple right? Now we thought, how can make this go further? So I tried w.x*(256 squared)+y*256+z and bam! Works. Okay, let's try it with just one! okay, so, w*(256 cubed)+x*(256 squared)+y*256 +z. Although this isn't that great, it's a fun tidbit. Here's a shell script I wrote to output an inputed IP into 1, 2, and 3 octs. Hopefully someone else finds this as interesting as I did :p
Code:
x="$1"
x1=`echo $x | awk -F . {'print $1'}`
x2=`echo $x | awk -F . {'print $2'}`
x3=`echo $x | awk -F . {'print $3'}`
x4=`echo $x | awk -F . {'print $4'}`
grr=`expr "256" "*" "256" "*" "256"`
y0=`expr "$x1" "*" "$grr"`
y1=`expr "$x2" "*" "65536"`
y2=`expr "$x3" "*" "256"`
outcome3=`expr "$y2" + "$x4"`
outcome2=`expr "$y1" "+" "$y2" + "$x4"`
outcome1=`expr "$y0" + "$y1" "+" "$y2" + "$x4"`
echo "------------------------------------------"
echo "Input IPv4: $x"
echo "------------------------------------------"
echo "Outcome with 3 Octets: $x1.$x2.$outcome3"
echo "Outcome with 2 Octets: $x1.$outcome2"
echo "Outcome with 1 Octets: $outcome1"
Report Spam   Logged

Share on Facebook Share on Twitter

Defcon 5
Master
*****
Posts: 2410



View Profile WWW
« Reply #1 on: February 02, 2008, 04:46:37 pm »

Too advanced for me.
But if I new what it was I would think its interesting well done on the exploration. Grin
Report Spam   Logged
Joygasm
Expert
****
Posts: 123



View Profile
« Reply #2 on: February 02, 2008, 09:08:26 pm »

okay, an IP is setup like this(we'll use a default one for our example) 192.168.1.1 okay, that's setup in 4 octets now, you can take that IP address and say ping it with 192.168.257 using that formula I put up there and it'll resolve to 192.168.1.1 doesn't help much, but if you were say, wanting to tell your friend your IP over chat and others could see, you can use 3232235777 (which is still 192.168.1.1) and nobody would have a clue what it was. Just a nice little factoid Cheesy
Report Spam   Logged
G33KF3R
Expert
****
Posts: 104



View Profile
« Reply #3 on: February 03, 2008, 12:48:17 am »

woou.. I don't undestand..  Huh jijij.. but pretty good..

keep going...
Report Spam   Logged
Defcon 5
Master
*****
Posts: 2410



View Profile WWW
« Reply #4 on: February 03, 2008, 04:28:35 am »

Thats cleaver I might try it later.
Report Spam   Logged
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« Reply #5 on: February 04, 2008, 05:01:30 pm »

A smart network admin would spot that.
I have seen that done a few times in order to bypass firewall rulesets.
Its fairly effective as well.
PHP has a function called ip2long which dose the same thing.
Report Spam   Logged
Nevablade
N00b
*
Posts: 2


View Profile
« Reply #6 on: May 05, 2008, 11:11:00 am »

do some applications support IPs in hex? - there are converters out there for them
Report Spam   Logged
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« Reply #7 on: May 05, 2008, 03:16:57 pm »

Yes, most apps support IPs in hex.
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #8 on: May 11, 2021, 02:27:15 pm »

Lebe230.1Huh?LaboHuh?Huh?Huh?Huh?Huh?HeinHuh?LynnSallJeroHuh?Huh?Huh?RomaHuh?MariHuh?Huh?Huh?
0831XVIITempDISCBiocVitaSchiJuliHuh?Huh?RobeTestGlorTeanAccaBiocSchiHuh?Huh?LoliHuh?SunsRhiz
Huh?CathHuh?FranHuh?Huh?NomiHuh?Huh?BarbAntoFillLineAtheHuh?DaleHuh?ElsyBrauSpliSquaChipJame
Huh?NatcFyodGezaHighGeorDemiZoneMahiHuh?BoriHuh?Huh?3-16ZoneZoneZoneHuh?MorgHuh?ZonePUREZone
MikeHuh?Huh?SharVeroHuh?Huh?GeraElecBlacXVIIHuh?BillGeorXVIIHuh?FeatYasuHuh?Huh?Huh?Quan1:10
Huh?Huh?Huh?CMOSBarbFireShinDolbHuh?Huh?ReadClauHuh?NatuWind?-64PlutHuh?ARAGARAGHuh?Huh?trac
SnowViewHuh?Huh?ClamHuh?Huh?WindBegiHuh?Huh?BraubrilHuh?ShebDaviSterHuh?Huh?Huh?LegeSlimHuh?
XVIIAfteGeroHuh?Huh?Huh?Huh?(HuhHuh?Huh?ValeHuh?FlowHuh?Huh?Huh?RyanHuh?BhagHuh?GeorHuh?OZON
Huh?GiniHuh?Huh?MPEGOZONHuh?Huh?Huh?Huh?ChalHuh?Huh?Huh?Huh?Huh?SideHuh?Huh?Huh?TeriCMOSCMOS
CMOSAstrHuh?Huh?QueeHuh?Huh?Huh?BettGoldHuh?Huh?Huh?tuchkasHuh?Huh?
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #9 on: October 08, 2021, 04:55:37 pm »

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboard.rugagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #10 on: November 07, 2021, 03:38:12 pm »

XIII
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #11 on: November 07, 2021, 03:39:22 pm »

234.2
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #12 on: November 07, 2021, 03:40:32 pm »

CHAP
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #13 on: November 07, 2021, 03:41:43 pm »

poin
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #14 on: November 07, 2021, 03:42:54 pm »

John
Report Spam   Logged

Pages: [1] 2 3 4 ... 17
  Print  
 
Jump to:  

Powered by EzPortal
eXTReMe Tracker
Security Forum
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy
Page created in 0.049 seconds with 15 queries.