IPV4_Reaper() : Harvest IPs from Haystack

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

IPV4_Reaper() : Harvest IPs from Haystack

19 Dec 2013, 23:01

Backup:

Code: Select all

IPV4_Reaper( HayStack, SPos=1, Unique=0 )        {    ; SKAN | 20-Dec-2013 | goo.gl/m1dxm7
  While ( SPos := RegExMatch( HayStack, "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}", IP, SPos ) )
    and ( SPos := SPos + StrLen( IP ) ) {
          StringSplit, Octet, IP, . 
          If not ( Octet1 > 255 || Octet2 > 255 || Octet3 > 255 || Octet4 > 255 ) 
             IPList .= ( IPList ? "`n" : "" ) . IP,  Count := ( Count ? Count + 1 : 1 )
  } IfNotEqual, Unique, 0, Sort, IPList, D`n U
Return IPList, ErrorLevel := Count
}



#SingleInstance, Force
SendMode Input

F12::
 Clipboard=
 Send ^c
 ClipWait, 2
 MsgBox % Clipboard := IPV4_Reaper( Clipboard, 1, 1 ) 
Return
My Scripts and Functions: V1  V2
Guest10
Posts: 578
Joined: 01 Oct 2013, 02:50

Re: IPV4_Reaper() : Harvest IPs from Haystack

19 Dec 2013, 23:11

any relation to this?:

Code: Select all

F11:: ; Get your public IP address
; http://www.autohotkey.com/forum/topic6052.html

URLDownloadToFile,http://www.netikus.net/show_ip.html,%A_ScriptDir%\ShowIP.txt
if ErrorLevel = 1
{
MsgBox,16,IP Addresses,Your public IP address could not be detected.
}
FileReadLINE,MainIP,%A_ScriptDir%\ShowIP.txt,1
MsgBox,64,IP Addresses,Your public IP address is: [%MainIP%]`n`nYour private IP address is: [%A_IPAddress1%]
FileDelete,ShowIP.txt
Return
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: IPV4_Reaper() : Harvest IPs from Haystack

20 Dec 2013, 01:58

Guest10 wrote:any relation to this?:
It is related to forum administration. There is a "Who is online" link on the main page of phpBB3 which will list all users and guests browsing the forum. To check if a bot is on the lurk, one will have to extract all the IPs and compare it with a database.

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 142 guests