• IPData Script

    From apam@21:1/126 to All on Sat Nov 2 11:12:26 2019
    Hi

    Last night I made an IP Data script for magicka... it's inspired by the
    phenom threat sentry..

    It shows a bunch of data from ipdata.co to the caller... like where
    they're calling from etc... (in case they didn't know)

    It doesn't decide to disconnect people if their IP doesn't meet certain requirements, but it does log the information into a csv file which you
    can load in a spreadsheet. Then you can if you want add the ip to the
    blacklist or not.

    You run it from the login_stanza.lua so it runs after a user is logged
    in, preferably before the "Do you want a quick login (Y/N)?"

    There's not much point to this script... it's just a bit of fun really.

    Andrew

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://magickabbs.com:2023/ (21:1/126)
  • From Al@21:4/106 to apam on Fri Nov 1 18:35:20 2019
    There's not much point to this script... it's just a bit of fun really.

    I did run a week or so ago the login_stanza_ipdata.lua just for a look.
    I'll check the website and try it again.

    I need to sort the blog also, maybe I'll stop what I'm doing and get that done.. :)

    Ttyl :-)
    Al

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From apam@21:1/126 to Al on Sat Nov 2 11:47:42 2019
    There's not much point to this script... it's just a bit of fun really.

    I did run a week or so ago the login_stanza_ipdata.lua just for a look. I'll check the website and try it again.

    Yeah, that one uses an ip2location database, which I haven't got right
    now. I need to put some instructions up to convert it.

    The script I'm talking about uses a different service and is in the MagickaScripts repository.

    Andrew



    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://magickabbs.com:2023/ (21:1/126)
  • From Al@21:4/106 to apam on Fri Nov 1 19:09:18 2019
    The script I'm talking about uses a different service and is in the MagickaScripts repository.

    Yep, I got that installed and it looks good.

    I also replaced the internal blog with the lua version and it works well.
    I think it needs to clear the screen after it's run, or before the system
    info is displayed. When the system info is displayed it get mixed
    together with the bottom of the blog's screen. Likely that screen
    clearing stuff I have been seeing.

    Ttyl :-)
    Al

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From apam@21:1/126 to Al on Sat Nov 2 12:47:01 2019
    The script I'm talking about uses a different service and is in the MagickaScripts repository.

    Yep, I got that installed and it looks good.

    I also replaced the internal blog with the lua version and it works
    well. I think it needs to clear the screen after it's run, or before the system info is displayed. When the system info is displayed it get
    mixed together with the bottom of the blog's screen. Likely that screen clearing stuff I have been seeing.

    It's probably best to just add screen clearing to your login_stanza.lua
    right after calling the blog..

    bbs_write_string("\027[2J\027[1;1H");

    should do it.

    Andrew

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://magickabbs.com:2023/ (21:1/126)
  • From Blue White@21:4/134 to apam on Sat Nov 2 15:59:44 2019
    apam wrote to All <=-

    It doesn't decide to disconnect people if their IP doesn't meet certain requirements, but it does log the information into a csv file which you can load in a spreadsheet. Then you can if you want add the ip to the blacklist or not.

    Magicka has an IP blacklist now?


    ... Direct from the Ministry of Silly Walks
    --- MultiMail
    * Origin: Possum Lodge South * possumso.fsxnet.nz:7636/SSH:2122 (21:4/134)
  • From apam@21:1/125 to Blue White on Sun Nov 3 12:13:16 2019
    apam wrote to All <=-

    It doesn't decide to disconnect people if their IP doesn't meet certain requirements, but it does log the information into a csv file which you can load in a spreadsheet. Then you can if you want add the ip to the blacklist or not.

    Magicka has an IP blacklist now?

    It has had for ages.

    Andrew

    --- MagickaBBS v0.13alpha (Linux/x86_64)
    * Origin: Nocturnal - nocturnal.hopto.org:2023 (21:1/125)