Author Topic: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists  (Read 4861 times)

0 Members and 1 Guest are viewing this topic.

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Support for http://www.iblocklist.com/lists.php list

2 Lists Were Processed, 0 I.P.'s And 0 Ranges Were Banned In: 7.72 seconds.

no ips is add atm :(

PtokaX forum


Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Okay :(

I have found a small bug, if there is ( : ) in reason it will not work :( like:
something 22:22:11 something :xxx.xxx.xxx-xxx.xxx.xxx

Code: [Select]
for reason,ips in list:gmatch("([^:]+):([^%\r\n]+)[\r\n]*") do
local _,_,sr,er = ips:find("^([%d%.]+)%-([%d%.]+)$")


when adding code please use code tags
« Last Edit: 17 July, 2011, 21:13:01 by Hamachi »

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #2 on: 15 July, 2011, 08:34:32 »
This have nofing whit the gzipped

if there is ( : ) in reason, it will not work :(
like:
somfing 22:22:11 somfing  :xxx.xxx.xxx-xxx.xxx.xxx

it will use ( : )
from
somfing  22:22:11
and not
somfing  :xxx.xxx.xxx-xxx.xxx.xxx

the code i send is from your script where the bug is.

hope you understand, hope you can help me :) and thanks you use you time on it.

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #3 on: 17 July, 2011, 16:38:23 »
American Idiot can you help me ?

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #4 on: 17 July, 2011, 19:23:51 »
I guess the colon is a delimiter in the database (reason:IP or something like that) and the pattern is confused when there is a colon in the reason (^%:+), so I also think this is a bug, if I am correct.

Also, Hamachi, it is correctly spelled SOMETHING. As "som" is a fruit in Hungarian, and "fing" means fart, you will slowly kill me if you insist on using this spelling because I'll laugh myself to death soon. :D
Everything could have been anything else and it would have just as much meaning.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #5 on: 17 July, 2011, 19:47:43 »
There is a GNU gzip port for windows so the download (with wget) and the inflation can be automated without any libs (and it can also be made really platform-independent this way, even though wget is part of the base system in GNU/Linux only) but that would cause some commandline popup windows all the time on Win.
I am however against adding such functionality into the hub server. How about using a method that works independently from the p2p app one is using, like PeerBlock?
Everything could have been anything else and it would have just as much meaning.

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #6 on: 17 July, 2011, 21:03:23 »
Sorry my bad english, i start a new Topic for the bug...

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Bug / request for support lot of ( : ) in WebBan
« Reply #7 on: 17 July, 2011, 21:09:44 »
I have found a small bug, if there is ( : ) in reason it will not work :( like:
something 22:22:11 something :xxx.xxx.xxx-xxx.xxx.xxx

it take the first ( : ) in line not the last ( : ) one

it mean it take ( : ) from reason too, it make a bug and dont take the reason  and ips correct

Hope some like to look on it :)
« Last Edit: 17 July, 2011, 21:13:26 by Hamachi »

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #8 on: 18 July, 2011, 07:44:22 »
WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists - gz bug

is not the same as

Bug / request for support lot of ( : ) in WebBan - characters  bug

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #9 on: 19 July, 2011, 00:32:18 »
It is make as req too

yes it support:
Verizon Internet Services Inc:4.5.248.0-4.5.251.255

but the script have a bug if  the list look like:
ISP:Telia Internet Services:4.5.248.0-4.5.251.255

this script is make like peerblock etc, it support:
ISP:Telia Internet Services:4.5.248.0-4.5.251.255

it only need to take the last : not the first, it will take you 1 min to edit...

hope some like to look on it

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #10 on: 19 July, 2011, 10:51:35 »
Yes you have say 3 time it not support .gz, i don't talk about it anymore.

I have write i 6 time, what i mean after, I have understand that whit gz.

I not write anything about it anymore, so i start a new topic, so you understand it:
Bug / request for support lot of ( : ) in WebBan ( anything about .gz)

But you move it, i can not find any original scripts thread.

Sorry my bad English, because you are Global Moderator can still talk normal to the users...

Who are thick ?
« Last Edit: 19 July, 2011, 12:47:11 by Hamachi »

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #11 on: 19 July, 2011, 22:30:00 »
what i do:
Add a p2p text format list where the reasons have lot of ( : ) in it

ISP:Verizon Internet Services Inc:4.3.0.0-4.3.255.255
ISP:Google Incorporated:4.3.2.0-4.3.2.255
ISP:Verizon Internet Services Inc:4.5.248.0-4.5.251.255

 :)

Offline sphinx_spb

  • Member
  • ***
  • Posts: 47
  • Karma: +10/-3
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #12 on: 20 July, 2011, 08:54:57 »
Try to remove ^ symbol from 2nd line

change
Code: [Select]
local _,_,sr,er = ips:find("^([%d%.]+)%-([%d%.]+)$")to
Code: [Select]
local _,_,sr,er = ips:find("([%d%.]+)%-([%d%.]+)$")

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #13 on: 21 July, 2011, 01:12:04 »
LOL :D

Total thanks sphinx_spb :D

Offline Hamachi

  • Forum Ace
  • *****
  • Posts: 88
  • Karma: +0/-7
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #14 on: 21 July, 2011, 11:45:25 »
IPs works now :)

the reason fuck up :(

Offline sphinx_spb

  • Member
  • ***
  • Posts: 47
  • Karma: +10/-3
Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #15 on: 21 July, 2011, 15:29:03 »
the reason fuck up :(
Then fuck the reasons  ;D

PtokaX forum

Re: WebBan 1.0 LUA 5.1x [Strict] [API 2] Support iblocklist lists
« Reply #15 on: 21 July, 2011, 15:29:03 »