Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Connect #15

Open
H7-25 opened this issue Jul 31, 2018 · 6 comments
Open

Remote Connect #15

H7-25 opened this issue Jul 31, 2018 · 6 comments

Comments

@H7-25
Copy link

H7-25 commented Jul 31, 2018

I'm testing your bot, i've set it +s cC , does it support remote connect too ?

DEBUG:asyncirc.IRCProtocol::*********** NOTICE antissh :*** CONNECT: Client connecting on port 7667 (class main): [email protected] (5.170.72.110) [00 x Italia|LightIRC]
DEBUG:asyncirc.IRCProtocol::*********** NOTICE antissh :*** REMOTECONNECT: Client connecting at rmote.server.com: [email protected] (151.34.65.18) [http://www.mibbit.com]

@kaniini
Copy link
Owner

kaniini commented Jul 31, 2018

yes, but you'll need to change the regex for inspircd.

@H7-25
Copy link
Author

H7-25 commented Jul 31, 2018

On HOPM i'm using this :

connregex = "\\\* REMOTE?CONNECT: Client connecting [^:]: ([^!]+)!([^@]+)@([^ ]+) \(([0-9\.]+)\) \[.\]";

It need to be set in antissh.py it should be in antissh.conf

@kaniini
Copy link
Owner

kaniini commented Jul 31, 2018

you should probably verify the HOPM regex actually works. at any rate, there's some reasons why it's in .py: i don't know what damage the configparser will do to it.

@Cronus89
Copy link
Contributor

This below works for remote and normal connects in inspircd

IP_REGEX = re.compile(r'Client connecting.*(([0-9a-f.:]+))')

@H7-25
Copy link
Author

H7-25 commented Aug 1, 2018

@Cronus89 i think is wrong :

DEBUG:asyncirc.IRCProtocol::flash..com NOTICE antissh : CONNECT: Client connecting on port 6667 (class main): [email protected] (94.167.107.33) [http://www.mibbit.com]
INFO:asyncssh:Opening SSH connection to c, port 22
INFO:asyncssh:Opening SSH connection to c, port 22
INFO:asyncssh:Opening SSH connection to c, port 22
INFO:asyncssh:Opening SSH connection to c, port 22
INFO:asyncssh:Opening SSH connection to c, port 22
DEBUG:asyncirc.IRCProtocol::flash.
.com NOTICE antissh :* REMOTECONNECT: Client connecting at rbx2..com: Vanessq!~[email protected] (79.33.232.211) [I am a webchat user]
INFO:asyncssh:Opening SSH connection to e, port 22
INFO:asyncssh:Opening SSH connection to e, port 22
INFO:asyncssh:Opening SSH connection to e, port 22
INFO:asyncssh:Opening SSH connection to e, port 22
INFO:asyncssh:Opening SSH connection to e, port 22
DEBUG:asyncirc.IRCProtocol::flash.
.com NOTICE antissh :*** REMOTECONNECT: Client connecting at webchat.*******.com: [email protected] (151.43.41.8) [Qwebirc]
INFO:asyncssh:Opening SSH connection to c, port 22
INFO:asyncssh:Opening SSH connection to c, port 22
INFO:asyncssh:Opening SSH connection to c, port 22
INFO:asyncssh:Opening SSH connection to c, port 22
INFO:asyncssh:Opening SSH connection to c, port 22

@Cronus89
Copy link
Contributor

Cronus89 commented Aug 1, 2018

I pulled that directly out of my working/running bot. I think github screwed with it, try below

IP_REGEX = re.compile(r'Client connecting.*\(([0-9a-f\.:]+)\)')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants