1 | static Pair<S, Int> ai_findSpammyIP() {
|
2 | new MultiSet<S> badIPs; |
3 | for ping (S s : ai_texts("$X", "was for path", "/")) {
|
4 | if (isCIPrefixPlusGlobalID(s, "HTTP request ")) {
|
5 | S ip = ai_text(s, "came from IP", "$X"); |
6 | badIPs.add(ip); |
7 | } |
8 | } |
9 | ret multiSetTopPair(badIPs); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013523 |
| Snippet name: | ai_findSpammyIP |
| Eternal ID of this version: | #1013523/3 |
| Text MD5: | 6812b5ef87264b1b4e59b4ae5e1fbab4 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-02-10 18:02:23 |
| Source code size: | 297 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 624 / 687 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |