Page 1 of 1 1
Topic Options
#7729 - 2001-03-26 05:17 PM What does this mean...?!
Anonymous
Unregistered


Hi there,

Does anyone know what this is used for or what it means...?!

$address=@IPADDRESS0
IF (INSTR($address,"80")=0 AND INSTR($address,"40")=0)
...(some instruction)...
ELSE
GOTO "END"
ENDIF

Thanx...

------------------
A l l Y o u r K I X A r e B e l o n g T o U s ! ! !

Top
#7730 - 2001-03-26 11:05 PM Re: What does this mean...?!
bleonard Offline
Seasoned Scripter
*****

Registered: 2001-01-19
Posts: 581
Loc: Chicago, IL
This is searching the IP address of the workstation for two strings - '80' and '40'. If both are not present, then '(some instruction)' is executed. '$address' is the string containing the IP address obtained from the Kix macro @IPADDRESS0.
The numbers '80' and '40' exist anywhere in the IP address - 192.040.32.1, 180.32.40.1, etc.
Bill

Top
#7731 - 2001-03-27 01:00 PM Re: What does this mean...?!
Anonymous
Unregistered


Bleonard,

Why does anyone want to scan if there is a 40 or 80 number in the ip address?

Is it maybe used for detecting a dialin RAS connection?
Isn't it better 2 use the @RAS>0 command macro... can you explain how this works?

Thanx, gtrz Eric

------------------
A l l Y o u r K I X A r e B e l o n g T o U s ! ! !

Top
#7732 - 2001-03-27 02:21 PM Re: What does this mean...?!
Anonymous
Unregistered


I would guess that certain IP addresses are being checked for. In all likelyhood the tests for 80 and 40 are enough to distinguish the required addresses from the others. Without knowing the addressing scheme used on the system in question it is not possible to determine anything more detailed.
Top
#7733 - 2001-03-27 05:30 PM Re: What does this mean...?!
bleonard Offline
Seasoned Scripter
*****

Registered: 2001-01-19
Posts: 581
Loc: Chicago, IL
SLM -
As to why you would scan, and in this manner, I could not say without seeing what the script is doing when these string values are found (or not found). Likely, as Fuse noted (or was that cj? ) they are checking for a particular network - perhaps along the lines of xxx.xxx.40.xxx, and xxx.xxx.80.xxx. So, if you've multiple networks in place you should be able to see what is 'special', from script-execution perspective, about those on the specific network(s) checked by this script in comparison to the other networks.

Another possibility - perhaps a network admin lost track of two systems (xxx.xxx.xxx.40, .80), and wanted to use this script to identify them in such a manner as to be able to find them within the office(s) being supported.

Bill

Top
#7734 - 2001-03-28 01:28 AM Re: What does this mean...?!
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
Wasn't me...


cj

------------------
For more scripts goto my website and click the hammer and spanner icon.

chrismat@ozemail.com.au

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2870 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.103 seconds in which 0.071 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org