Jump to content

capture ARP Caches and IPs caches as Variables


Ibrahim
 Share

Recommended Posts

#include <Process.au3>
TrayTip("Intruder Detector","Program By: Ibrahim Ghorabah",2)
Do
$rc = _RunDos("arp -a >c:\ArpList.bin")
$Size=FileGetSize("c:\ArpList.bin")
$intruder=FileRead("c:\ArpList.bin")
if $Size>142 then 
    TrayTip("Network Watcher","Life Connection From"&$intruder,4,2)
;for $line=1 to 10
;$Exclude[$line]=FileReadLine("c:\intruderList.txt",$line)
;if $Exclude[$line]=
    FileWrite("c:\intruderList.txt",@HOUR&":"&@MIN&"--<Connection From:-"&$intruder)
_RunDos("arp -d")
EndIf
    Sleep(5000)
Until $rc=1
_____>need to capture them as variables Please

Link to comment
Share on other sites

$intruder=FileRead("c:\ArpList.bin")

What more do you need?

You've demonstrated you know how to create and read text files, parse the text...

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Link to comment
Share on other sites

FileWrite("c:\intruderList.txt",@HOUR&":"&@MIN&"--<Connection From:-"&$intruder)

the arp cache won't help you to detect any "intruder" !!

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

not if u detect arp changes of the same ip address i hope u can help me get out of my stupid script to a better one where i can capture these adresses as variables as IP$[1],IP$[2] . . .and ARP$[1],ARP[2] . . . . if u please

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...