Skip to content
New issue

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

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

Already on GitHub? # to your account

hunt_server() with wildcard hits wrong server #44

Open
df7cb opened this issue Nov 30, 2016 · 4 comments
Open

hunt_server() with wildcard hits wrong server #44

df7cb opened this issue Nov 30, 2016 · 4 comments

Comments

@df7cb
Copy link
Member

df7cb commented Nov 30, 2016

/quote shedding quantum* 60 0 :Server maintenance
!oxygen User shedding ENABLED by Myon (~myon@myon.chair); interval: 60 seconds, opers: no, reason: "Server maintenance" [helix]
/quote shedding quantum* off
!oxygen User shedding DISABLED by Myon (~myon@myon.chair) [helix]
/quote shedding quantum.oftc.net 60 0 :Server maintenance
!quantum User shedding ENABLED by Myon (~myon@myon.chair); interval: 60 seconds, opers: no, reason: "Server maintenance" [helix]
@df7cb df7cb changed the title SHEDDING with wildcard hits wrong server hunt_server() with wildcard hits wrong server Nov 30, 2016
@df7cb
Copy link
Member Author

df7cb commented Nov 30, 2016

More weirdness:

/motd kin* -> oxygen
/motd kinetic* -> helix
/motd kinetic.o* -> kinetic

@df7cb
Copy link
Member Author

df7cb commented Nov 30, 2016

So thanks to rnowak and me continuing to wtf over some code bits, we found the explanation: There is a user QuantumBot connected to oxygen, and a user kineticrootkit[m] connected to helix which made hunt_server find the user first before applying the wildcard to server names.

We should fix that to look at server names first, or remove the user lookups alltogether in the places where it doesn't make much sense (shedding, motd, ?).

@cryogen
Copy link
Contributor

cryogen commented Nov 30, 2016

That's just kind of the way it works. It's always better to use fully qualified names instead of wild cards when doing remote commands

@Adam-
Copy link
Contributor

Adam- commented Nov 30, 2016

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

No branches or pull requests

3 participants