[ kaitensushi ] [ lounge / arcade / kawaii / kitchen / tunes / culture / silicon ] [ otaku ] [ yakuza ] [ hell ] [ ? / chat ] [ lewd / uboa / lainzine ] [ x ]

/yakuza/ - site meta-discussion

the sun never sets on the sushichan global crime syndicate
[catalog]

Name
Email
Subject
Comment
File
Embed
Password (For file deletion.)

• Files Supported: webm, swf, flv, mkv, mp4, torrent, 7z, zip, pdf, epub, & mobi.
• Embeds Supported: youtube, vimeo, dailymotion, metacafe, & vocaroo.
• Max. post size is 10MB / 4 files.

Remember to keep it cozy!

The new CP spam filter now also works on posts that hide the link in the image instead of the post body.

File: 1721261022964.jpg (1.12 MB, 1450x1337, o8y5qpaael9y.jpg)

 No.1198

I have modified the software today to be able to block the actual endpoints of the shortened URLs usually included in CP spam. This should help a lot with slowing down the spam; the spammers have infinite URL shorteners but so far they all point to the same few places. We will start checking endpoints and adding them to the blocklist soon. Hopefully browsing will become less stressful.

This modification has also been submitted as a pull request to the main vichan repo. Hopefully they pick it up and other sites can start using it.

P.S. I also upgraded us to the newest version of the software. Stuff could break so please let me know if something isn't working right.

 No.1199

>>1198
thank you thank you thank you

 No.1201

Won't work in the long run. The CP spammer will just look at this regex pattern that you've submitted to vichan publicly and figure out how to bypass it. Like I've already bypassed it in regex101.com just by adding a space in between. Or he'll just put the links in the images like he's done before.

The only ironclad solution is to block all VPNs at the firewall level (e.g. UFW, iptables). This list is accurate and regularly-updated.

https://github.com/X4BNet/lists_vpn/blob/main/output/datacenter/ipv4.txt

You would write a Python script that:

1. Downloads that text file locally (e.g. /opt/vichan/ipv4.txt).
2. If /opt/vichan/ipv4_old.txt exists, add every line to a set variable called "old_ranges" and add every line from ipv4.txt to another set called "new_ranges". Check to see if every range in "old_ranges" exists in "new_ranges", and for those match in "new_ranges" remove it from that set, and for those that don't exist in "new_ranges", add those ranges to a set variable called "to_be_deleted". Add the ranges from "new_ranges" to UFW or iptables via the correct corresponding external commands (subprocess etc.) and delete the ranges from "to_be_deleted" in UFW or iptables via the correct corresponding external commands. Delete ipv4_old.txt and rename ipv4.txt to ipv4_old.txt.
3. If /opt/vichan/ipv4_old.txt does not exist, add all the ranges from ipv4.txt to UFW or iptables via the correct corresponding external commands and then rename ipv4.txt to ipv4_old.txt.
Then you would have this Python script run as a yearly cron job.

I'm sure ChatGPT can do all of this easily within the snap of a finger, but I don't have a VM right now with vichan installed to actually test this (and verify what it does with UFW/iptables, etc.) and I'm too busy to deal with this any time soon.

In the meantime you should add this DNSBL's to your vichan config.php or instance-config.php if you haven't already, these have no false-positives and block Tor effectively.

$config['dnsbl'][] = 'rbl.efnetrbl.org';
$config['dnsbl'][] = 'dnsbl-1.uceprotect.net';
$config['dnsbl'][] = 'dnsbl.dronebl.org';
$config['dnsbl'][] = 'torexit.dan.me.uk';
$config['dnsbl'][] = 'dnsbl.tornevall.org';

 No.1203

>>1201
I don't think they are using VPNs, I think they are using a botnet of compromised computers. Blocking ranges would be useless. We are already using DNSBL.

They can only abstract a URL so far before it becomes unreadable. I will work around it as much as is necessary until no one could even read their URLs and their scheme is completely worthless. A war of attrition.

 No.1204

File: 1721283406601.png (9.35 KB, 580x400, 16-bit-range-ban.png)

>>1203
>I don't think they are using VPNs, I think they are using a botnet of compromised computers.
I checked individually most of the IPs banned via https://networksdb.io/ip/[INSERT_IP] . They all belong to a data center. You can check for yourself with that link next time he spams. Packethub S.A, OVH and M247 Ltd are the most common. As well as basically all the ranges known to be used by all the ones used by NordVPN, ExpressVPN et al. So this spammer is not that sophisticated, he's using mainstream VPN services. We've already mostly eliminated his spamming just by range-banning because he's run out of ranges to use from his VPNs, I can see all the checkmark symbols on the ban list page where he's attempted to use a range-banned IP range again over the past months. I added a 16-bit rangeban button for the ban page (VICHAN_ROOT/templates/mod/ban_form.html) to make it easier for the mods to rangeban quicker instead of having to type *.* or 0.0/16 manually. Maybe not the most elegant since that's 65,535 IPs instead of the narrower ranges in that above ipv4.txt file, but we haven't had appeals complaining about false positives. Hence why I'm not bothering with that approach yet since the spam appears to be gone now (unless he's gone on vacation or something lol).

Button:

<input name="16bitrange" type="button" value="16-bit range" onclick="function t(){var i=document.getElementById('ip'),v=i.value,p=v.split('.');if(p.length>=3){i.value=p[0]+'.'+p[1]+'.*'}}t()">


In context, in ban_form.html:

<td>
	{% if not hide_ip %}
		<input type="text" name="ip" id="ip" size="20" maxlength="40" value="{{ ip|cloak_ip|e }}">
		<input name="16bitrange" type="button" value="16-bit range" onclick="function t(){var i=document.getElementById('ip'),v=i.value,p=v.split('.');if(p.length>=3){i.value=$
	{% else %}
		<em>{% trans 'hidden' %}</em>
	{% endif %}
</td>

 No.1205

>>1204
><
>>
These are angle brackets btw, not sure why your code tag is screwing it up.

 No.1206

File: 1721298093946.jpeg (42.97 KB, 1024x576, alice_wow.jpeg)

>>1201
You can see how our strategy differs from a typical text pattern match in combination with other vichan features because we are matching spammer's endpoints, not his bait. Banned text in images is a long-ago solved problem by the vichan team. Make sure to update your software. Sei didn't.

>>1204
Would you be so kind and actually submit these changes to vichan directly, please? A dedicated range ban button (especially one with adjustable range size) would be awesome for all boards.

And while mass banning datacenters to deplete the adversary's resources is feasible (your observations match with mine, albeit I have seen posts from unmarked IPs in the Netherlands as well), it's a cat&mouse game as well and has a crossfire potential for the users that actually use such IPs legitimately such as me (e.g. those for whom this site is blocked by their ISP, country or big tech conglomerates) and would require even more human intervention in case of false positives. See >>1000 for more details.

>angle brackets

I think it's a bug where "htmlspecialchars" is performed post-wide, including code blocks. Will take a look if it's present in vanilla vichan as well.

PS: No need to sage, we love you and your posts <3

 No.1207

>>1206
sage is not a downvote.

 No.1209

>>1204
This is a neat little trick and some good info, though I'd like to see how my solution works before banning whole ranges, I will keep it up my sleeve. Thanks.

>>1206
I updated the software yesterday so that I could send my mod upstream. :v

If there is common text in the images we will get those. If it's shifting URLs, I will conjoin my unshortening solution with the OCR code and pipe extracted text through the new filter.

 No.1210

Hopefully it works in keeping out the pedosans but assuming they are sentient and not mechanotrons they may find a work around. I really don't get why they spam this stuff. Assuming they are commercial spammers, they can't be getting many customers from sites like these. What if we just hunt down the pedo spammers and kill them all? No man no spam.

 No.1211

Just checking how strict the IP filters are, non-maliciousy.

 No.1213

File: 1721889505915.jpg (847.61 KB, 1269x1500, E0D40lxVIAE701J.jpg)

i don't think i have seen anything nasty since this!

 No.1220

File: 1722439055203.jpg (449.73 KB, 1656x2477, 1721755623408.jpg)

almost two weeks without looking at cp! my psychiatrist will be in awe

 No.1231

>>1220
Tachibana-san :3

 No.1239

Sei's new anti-spam weapon seems to be working. Nice.



[Return][Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ kaitensushi ] [ lounge / arcade / kawaii / kitchen / tunes / culture / silicon ] [ otaku ] [ yakuza ] [ hell ] [ ? / chat ] [ lewd / uboa / lainzine ] [ x ]