Jump to content
UBot Underground

Regex Only Catching Half Ip


Go to solution Solved by pash,

Recommended Posts

I'm using the following GET command to pull a proxy list:

https://hidester.com/proxydata/php/data.php?mykey=data&offset=0&limit=900&orderBy=latest_check&sortOrder=DESC&country=&port=&type=15&anonymity=3&ping=3&gproxy=2

 

Then attempting to add the list to a list with this regular expression:

\b(?:(?:2(?:[0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9])\.){3}(?:(?:2([0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9]))\b

 

Now  I've tested the regex expression, and it is correct (http://regexr.com/38odc), but for some reason, running this command only adds half of  an ip to the list, and only grabs maybe 1/4 of them.  Here's a screenshot of the debugger:

http://i.imgur.com/hNHSb56.png

 

 

I'm at a loss here.  Regex checks out, both GET and navigate/$document text methods appear to grab the content fine... If anyone could take a shot at this, i'd really appreciate it.

 

Heres the ubot code sample (using the HTTP GET plugin)4

define hidester {
    set(#hidesterP1,$plugin function("HTTP post.dll", "$http get", "https://hidester.com/proxydata/php/data.php?mykey=data&offset=0&limit=900&orderBy=latest_check&sortOrder=DESC&country=&port=&type=15&anonymity=3&ping=3&gproxy=2", "", "", "", ""),"Global")
    add list to list(%primaryList,$find regular expression(#hidesterP1,"\\b(??:2(?:[0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9])\\.)3(??:2([0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9]))\\b"),"Don\'t Delete","Global")
}

And here's the same idea NOT using the HTTP GET plugin

define hidester2 {
    navigate("https://hidester.com/proxydata/php/data.php?mykey=data&offset=0&limit=900&orderBy=latest_check&sortOrder=DESC&country=&port=&type=15&anonymity=3&ping=3&gproxy=2","Wait")
    add list to list(%primaryList,$find regular expression($document text,"\\b(??:2(?:[0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9])\\.)3(??:2([0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9]))\\b"),"Don\'t Delete","Global")
}

What in the actual crap is the problem here?  I've been smashing my head against a wall for over an hour now, and can't even BEGIN to possibly derive the issue.  Anyone have any idea?!?????

  • Like 1
Link to post
Share on other sites
  • Solution

Not all web will work properly.
REGEX a variety of formats Each different languages.

 

try

add list to list(%primaryList,$find regular expression($document text,"\\b(?:[0-9]\{1,3\}\\.)\{3\}[0-9]\{1,3\}\\b"),"Don\'t Delete","Global")

 

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...