From 65f1305e3274adbbb2c225955668e9641b08d87d Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 3 Dec 2024 09:23:35 -0700 Subject: [PATCH] fix --- src/policies/tagPolicy.ts | 2 +- strfry-policy.ts | 57 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 55 insertions(+), 4 deletions(-) diff --git a/src/policies/tagPolicy.ts b/src/policies/tagPolicy.ts index 816500e..39173e5 100755 --- a/src/policies/tagPolicy.ts +++ b/src/policies/tagPolicy.ts @@ -44,7 +44,7 @@ if (msg.event.kind === 0) { }; }; - let mastodon: (string | number)[] = ['rape.pet','peoplemaking.games','gay','mas.to','abraham.su','lgbt','fosstodon','bae.st','bsky','liberal.city','mastodon.bot','botsin.space','a2mi.social','.au','masto.host','mastodon.online','social.beaware.live','nofan.xyz','mastodon.social','mstdn','mathstodon','universeodon','infosec', 'mastdn', 'kitty.social', 'c.im', '.jp', '.de', '.fr', 'toot', 'mastodon', 'misskey', 'journa.host', 'social', 'eldritchcafe', 'hachyderm', 'plush.city','kinky', 'chaosfem'] + let mastodon: (string | number)[] = ['waskuisland','cyberpunk','sauropods','thicc','blovice','piggo','io-mwl.io','official.resource.org','cuties.zone','o3o.ca','mas.corq.co','snac.lowkey.party','nicecrew.digital','gravure','packmates','spinster','alive.bar','pawoo','prsm.space','miniwa.moe','netzsphaere','varishangout','godforsaken.website','zirk.us','fediscience.org','shota','.uk','.eu','.de','.it','ravenation.club','declin.eu','furry','101010.pl','boing.world','socel.net','freeradical.zone','stefanbohacek.online','queer','hellions.cloud','absturztau','freefree.ps','mast','fedi.monster','womenforward.us','threads','masto','connectop.us','dice.camp','orfodon.org','m.moec.top','aethy.com','anakmanis.com','flipboard.com','eclipse.pub','blimps.xyz','bsky.social','glammr.us','pubeurope.com','spookygirl.boo','woem.men','universeodon.com','masto.es','loforo.com','india.goonj.xyz','xscape.club','digipres.club','troet.cafe','beige.party','theres.life','imm-erge','writing.exchange','bsky','fxckedtodeath','fedibird','accioly','baraag', 'girlcock.club','rape.pet','peoplemaking.games','gay','mas.to','abraham.su','lgbt','fosstodon','bae.st','bsky','liberal.city','mastodon.bot','botsin.space','a2mi.social','.au','masto.host','mastodon.online','social.beaware.live','nofan.xyz','mastodon.social','mstdn','mathstodon','universeodon','infosec', 'mastdn', 'kitty.social', 'c.im', '.jp', '.de', '.fr', 'toot', 'mastodon', 'misskey', 'journa.host', 'social', 'eldritchcafe', 'hachyderm', 'plush.city','kinky', 'chaosfem'] const p = msg.event.tags.filter((tag) => tag[0] === 'p'); const e = msg.event.tags.filter((tag) => tag[0] === 'e'); diff --git a/strfry-policy.ts b/strfry-policy.ts index d002c3a..3b04bd5 100755 --- a/strfry-policy.ts +++ b/strfry-policy.ts @@ -19,13 +19,64 @@ emoji for await (const msg of readStdin()) { const result = await pipeline(msg, [ tagPolicy, -[rateLimitPolicy, { whitelist: ['127.0.0.1', '192.168.0.55', '192.168.0.1'] }], -[regexPolicy, /(program-ai.app|#transgender|#trans|#LGBTQ|#LGBTQIA|simpleX|1-1111-1|1-1-1-1|-----END|Sensor data:|"part"|경|TURIZBOT|If you want this to stop|DID YOU MISS ME?|This is a post from|DYNAMITE|#Rogule|MPN:|Author:|#blowjob|ア|サ|#gedanken|#lust|#nude|#sexy|#lingerie|이|#gay|#cock|#cum|#frots|==========|===============|#fiatjaf|리|#perverted|#pissing|#kinky|#fetish|ミ|今|シ|ロ|タ|ワ|일|#gnostr|ヤ|メ|コ|中|#regexle|自|ゥ|フ|月|ĝ|手|川|ぁ|什|マ|ル|ブ|ぺ|ぇ|円|万|キ|ャ|り|予|ㅋ|어|할|음|디|지|で|ノ|ス|ミ|ぐ|え|フ|ラ|れ|ゴ|タ|キ|ク|イ|ก|น|พื่|ド|モ|ふ|む|theYescoin_bot|休|ン|ァ|#gnostr|二|を|下|出|門|へ|ぱ|し|首|大|子|소|트|든|소|#Worldle|아|대|인|百|合|東|ふ|む|牛|跨|界|บ|งั|ぴ|よ|ね|ウ|ボ|ァ|沖|田|#decreasingfees|"ping"|常|可|非|#metazooa|ã|ú|#WhereTaken|#Lingule|き|チ|~|จั|ลั|ม|ü|ส|น่|说|胡|#Swarm_to_Nostr|ą|ę|Hello World!|#pastpuzzle|#Polygonle|上|几|哈|#waffle|ぃ|ひ|ค่|め|こ|わ|女|头|É|#Photography|#Bicycling|diningandcooking|botsin|lume|克|ッ|ー|ア|か|示|来|ç|à|に|う|ろ|早|ハ|だ|ガ|#Horoscope|ハ|オ|ヨ|#feesbelow10|#feesbelow20|utxo|õ|た|い|お|í|じ|ま|ご|europesays|元|不|一|replicatr|varishangout|9gag|✄|屁|〜|良|す|る|了|#caturday|人|#Ukraine|#labor|ぽ|ゆ|林|黑|Wordle|ć|ś|#Bot|ñ|ん|#Airport|も|yadio|SELLEUR|ö|ä|н|ч|и|п|д|ê|á|สุ|ด|는|보|trojan|siam|は|ン|ス|ッ|nhk|っ|ー|の|て|サ|ة|ك|หิ|india|あ|と|rss|eth.limo|vmess|ク|ょ|日|立|ら|リ|nsfw|loli|shota|#ass|#pussy|#reddit|#lewd|waifu|hentai|#porn|telegra.ph|hindu|재|서|다|한|로)/i], -[keywordPolicy, ['https://media.channels.im','pay rent','Revealing nonce:','NostrDice','https://media.infosec.exchange','npub1q6ps7m94jfdastx2tx76sj8sq4nxdhlsgmzns2tr4xt6ydx6grzspm0kxr','My goals:','TURDISMO','https://files.thicc.horse','https://fe.upload.disroot.org','https://media.beige.party','https://s3.simkey.net','https://media.me.dm','https://media.fops.cloud','https://unfufadoo.net','https://t.co','https://witter.cz','https://static.theblower.au','https://minidisc.tokyo','https://cdn.noods.fun','https://thumbsnap.com','https://paste.gmem.ca','https://x.com','https://assets.fedeaated.press','https://media.outerheaven.club','https://kneel.before.dog','https://media.nofan.xyz','https://media.horrorhub.club','https://stockroom.wandering.shop','https://media.troet.cafe','https://ovo.wxw.media','https://files.girino.org','https://media.absturztau.be','https://files.ioc.exchange','https://media.cmx.edu.kg','https://media.suya.place','https://media.valkyrie.world','https://voskeyfiles.icalo.net','https://ak.kyaruc.moe','https://mast-files.shitpostbot.com','https://cdn.aethy.com','https://media.spinster.xyz','https://img.pawoo.net','https://amami.paradigm-x.tokyo','https://social.mikutter.hachune.net','https://imouto.pics','https://pl.slash.cl','https://matrix.rocks','https://quark.scrolller.com','https://cum.salon/media','https://www.manyvids.com','https://fansly.com','https://onlyfans.com','https://proton.scrolller.com','https://pomf2.lain.la','https://media.wolfgirl.bar','https://api-test.summary.news','https://fans.ly','https://figure.game','https://gearlandia.haus/media','https://link.storjshare.io','https://kinkyelephant.com','https://cdn77.scoreuniverse.com','https://milker.cafe','https://open.spotify.com','https://media.gameliberty.club','https://media.baraag.net','https://t.me/','https://nyc3.digitaloceanspaces.com','https://images.scrolller.com/femto']], +[rateLimitPolicy, { whitelist: ['127.0.0.1', '192.168.0.55', '192.168.0.1','192.168.0.0/24'] }], +[regexPolicy, /(==|program-ai.app|#transgender|#trans|#LGBTQ|#LGBTQIA|simpleX|1-1111-1|1-1-1-1|-----END|Sensor data:|"part"|경|TURIZBOT|If you want this to stop|DID YOU MISS ME?|This is a post from|DYNAMITE|#Rogule|MPN:|Author:|#blowjob|ア|サ|#gedanken|#lust|#nude|#sexy|#lingerie|이|#gay|#cock|#cum|#frots|==========|===============|리|#perverted|#pissing|#kinky|#fetish|ミ|今|シ|ロ|タ|ワ|일|ヤ|メ|コ|中|#regexle|自|ゥ|フ|月|ĝ|手|川|ぁ|什|マ|ル|ブ|ぺ|ぇ|円|万|キ|ャ|り|予|ㅋ|어|할|음|디|지|で|ノ|ス|ミ|ぐ|え|フ|ラ|れ|ゴ|タ|キ|ク|イ|ก|น|พื่|ド|モ|ふ|む|theYescoin_bot|休|ン|ァ|二|を|下|出|門|へ|ぱ|し|首|大|子|소|트|든|소|#Worldle|아|대|인|百|合|東|ふ|む|牛|跨|界|บ|งั|ぴ|よ|ね|ウ|ボ|ァ|沖|田|#decreasingfees|"ping"|常|可|非|#metazooa|ã|ú|#WhereTaken|#Lingule|き|チ|~|จั|ลั|ม|ü|ส|น่|说|胡|#Swarm_to_Nostr|ą|ę|Hello World!|#pastpuzzle|#Polygonle|上|几|哈|#waffle|ぃ|ひ|ค่|め|こ|わ|女|头|É|botsin|克|ッ|ー|ア|か|示|来|ç|à|に|う|ろ|早|ハ|だ|ガ|#Horoscope|ハ|オ|ヨ|#feesbelow10|#feesbelow20|utxo|õ|た|い|お|í|じ|ま|ご|europesays|元|不|一|replicatr|✄|屁|〜|良|す|る|了|#caturday|人|#Ukraine|#labor|ぽ|ゆ|林|黑|Wordle|ć|ś|#Bot|ñ|ん|#Airport|も|yadio|SELLEUR|ö|ä|н|ч|и|п|д|ê|á|สุ|ด|는|보|trojan|siam|は|ン|ス|ッ|nhk|っ|ー|の|て|サ|ة|ك|หิ|あ|と|rss|eth.limo|vmess|ク|ょ|日|立|ら|リ|#ass|#pussy|#reddit|#porn|telegra.ph|재|서|다|한|로)/i], +[keywordPolicy, ['https://media.channels.im','pay rent','Revealing nonce:','NostrDice','npub1q6ps7m94jfdastx2tx76sj8sq4nxdhlsgmzns2tr4xt6ydx6grzspm0kxr','My goals:','TURDISMO','https://media.fops.cloud','https://t.co','https://witter.cz','https://cdn.noods.fun','https://thumbsnap.com','https://paste.gmem.ca','https://x.com','https://kneel.before.dog','https://media.nofan.xyz','https://stockroom.wandering.shop','https://quark.scrolller.com','https://www.manyvids.com','https://fansly.com','https://onlyfans.com','https://proton.scrolller.com','https://api-test.summary.news','https://fans.ly','https://figure.game','https://link.storjshare.io','https://open.spotify.com','https://t.me/','https://nyc3.digitaloceanspaces.com']], [pubkeyBanPolicy, [ '39a354c6c987abfaf78947e71f856bd0d074c7dbb793e614b7db9efd058071b9', 'f9a0cb53543584f348bdb7e14bf19066610a8e1b63c8aa83f3dd36f93f634b46', '8dafd6b18b5a71088bf7ea38a5019b1ac6dafd235d344fc313041213462bf843', +'de5d55ba5382280b757d65775fe601cf137cf0489497159c7d85931d0474a8ba', +'0432dca25e4ad7a62308efbb32c7592d4b00a6aa850ef4486b0e056b205a91da', +'a3a2314919d99ec5e461be352135fcc49d498dab1d3bff8065b14e8d612b8c7d', +'bfd121a37773554f2ef3e8e524e0e337f3bf852eb55cd9664e2c901514f063e7', +'2c692293df11387d99e2d9f781d67210e1de2ffad6e0f7445e7133d7d4573d03', +'0403c86a1bb4cfbc34c8a493fbd1f0d158d42dd06d03eaa3720882a066d3a378', +'0d2a0f56c89fd364b89723ffe76102394010ca3fe48b804f0df86e2cef40df51', +'9d41468a833b035e76f32addd61c5e097ea95b70d920c379e684467e2f1f7d0d', +'e81ad66d10a5a53f6ffe67bf3407e18e52448b077db461d1993f8e142039004e', +'166e848110640fbc3d9209713c7fd29a427af8d6b5983e0b814976c7d8b3afff', +'666e61585aaa5cb10b94c266d39f99f3d5bc3ecd6434e829fe8360b0ee3f20cc', +'8975d510d3197abf9d80f378e6a4f71ac74bea858622d21ed218effb23371702', +'6cb5687c8244e565b7efbdd17a5cbe9d629d0f9eccda00f1821e60c197c4a0d4', +'c5e173798dad29dd2b8062b8310974aed0a72e3645f9e58d2129bc6abd15d8bf', +'830a78ef979be7adcee2883ddcee6b36c367029af6ca4ee2a06c440cbcd7163d', +'b0fed405b15d855a6a90d172c95bc8ce4bd1d904145707f7361df1e1f23eeece', +'4679aeb536e75cfe3cff4643f09ab28f47ddc8027d51dfdaba41c9b062b97fb9', +'0319e30036cf113a821d2fc12e10325ac26d232eb450211dfbcb9fefa02ea7a0', +'e55e586bc45ed82ff8488fa9c9448de2c408a866a78d553886b6d289fcd11de8', +'a31f64ac53c73ee6d838d964a4761d6d0745983406655cb10cea0ab7f68a73d8', +'96aa7bbc0a7e934f771654d54bb46d13585abf438dd59249eef389131ce73655', +'875705398bd7f1786799ddd2f3fe07ffe92e35ab21a936d80810e8c169e6bfc0', +'e7bf8dad360828f0289b7b4bea1a1bd28eb6d4d6522fa17f957e0dfb839ef3db', +'eb8d73d31477612d3db55719b1705d57192e89292efd0b214c4f8ca49d04b3ac', +'5e3296e5426d202a57bd6a0f8cdf98ca938d0a83f2f96925cd407f94ba790327', +'72dd70599fa4e10febdeef6c030f550769a66c0002d2249a6779b85bb3399a20', +'98a7e3f6be40f1e20ce1c9623b6107964bed078d025d19f9086843b415e18646', +'b7dbb6b76cdd0a9760c39a2db9060d3979e350ced660ade5cec6f4919b8a7d9c', +'2a62748263069c30099b9ea40af3ebbd488555a2171918ea77bd1303dd0981e5', +'ba2a01da28660cb7c0f0c0877b7e5b90f4cb4ffaf3aedf6058ff42dab03fa801', +'166fe0f534729a6b5f501a3da62f8987e058b2bc8c76a5e762c95047914865eb', +'79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', +'79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', +'a5ffb0804adf55fa271c37d3d6363b451ecef5a990601b76a82fa39ffb3de4e4', +'0cd5ab5d8b926eeae46f1f4aea0cf02be569bd1c4837ec7d4dc9c29ae985afee', +'e400724642033c1690c8ad7d5a35b2f1671c2bb1e94056dd59be2a7655f62512', +'b62afda8464f8d060ab90741d800e71fcb310db7eae72a9faffcb8fc26f378a1', +'875702c0c577508aa9e4d4e117ca083eb4c5b5486e2d1310f59ba2dd34899ca8', +'df119888f6a4570ad269baef01cf4090a4ed00c9479f51972709a7b43a6c08a0', +'41f9ce8d8342797834130516097ee3a12f23bc198509ed5cddafc5e611f53d33', +'dc2a23e54982257f518bb1f05093747a24c0c786ffb83e1d9ec78336973b0f5a', +'e43f16ab84552a8680d3ade518803770fa16c9835da0a0f5b376cddef7f12786', +'5f50081c87ccd77845d8445b9e4bedd50771660fb3a53330e595a0227320e44b', +'275e3c04e36c3de5e47133e8008b609ede1e86881e70f9d8b78e9f44b7c6be34', +'b208b01e106c15216558e6d382671dc1926c280dea7935a7f7eff69692dc6030', +'d7d5f0e438691447005ae40250337b045a166464bcb885bf693ca0959c92b179', +'6da6fb23ca13c08e69f27f347293e8a90d4f0ce6b70e7a0f7707403652c24cc8', +'1fe0595fdf5ddc38bfc262d170c2cac6d89bb3fae5647fe0221cc151fceae4d9', +'e43f16ab84552a8680d3ade518803770fa16c9835da0a0f5b376cddef7f12786', +'e2ccf42180c56901bd03ddb7c26d37752b7aecc0a59a4fb2d59cefd44eb9291d', +'cd2213a845a78674c31f5ab8b1bb2e5d4c4d112719d632846d4a2bfeeae87d6f', 'db8f291dcf949373f5224070cbef4fab80b9a8d3434246aca1fe34114cc51dd0', '90ea1c6a53ffa0b2c3acdc14162e2abe12027756fad7d3ee60d541bf4289f131', '1b1f2eaf7bd5da72cfd5352f8ff72dd69a6e57d2b6623a711b4402703a028741',