<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Spinlab - The resource hub - Scripts]]></title>
		<link>https://spinlab.top/</link>
		<description><![CDATA[Spinlab - The resource hub - https://spinlab.top]]></description>
		<pubDate>Thu, 09 Apr 2026 08:47:28 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[[Python3] Script to check SOCKS5 proxies for UDP support]]></title>
			<link>https://spinlab.top/showthread.php?tid=6</link>
			<pubDate>Thu, 19 Mar 2026 13:36:09 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://spinlab.top/member.php?action=profile&uid=1">RazoR</a>]]></dc:creator>
			<guid isPermaLink="false">https://spinlab.top/showthread.php?tid=6</guid>
			<description><![CDATA[Working on a project that required to communicate via UDP and have proxied connections (via UDP too) I asked Claude AI to write me a python3 script that would parse a list of SOCKS5 proxies and would check + save into a file all the proxies that support UDP (UDP association for SOCKS5).<br />
The script was made only for SOCKS5 protocol and worked very well in finding proxies that support UDP.<br />
Also, one thing that I came across, UDP proxies are pretty rare and after parsing a list of over 500000 IPs, only a few had UDP support enabled (a list of the proxies found is here: <a href="https://github.com/Deiow/SOCKS5-Proxy-Checker/blob/main/socks5_proxies.txt" target="_blank" rel="noopener" class="mycode_url">https://github.com/Deiow/SOCKS5-Proxy-Ch...roxies.txt</a>).<br />
<br />
The script can be found on Github -&gt; <a href="https://github.com/Deiow/SOCKS5-Proxy-Checker/blob/main/test_socks5_udp.py" target="_blank" rel="noopener" class="mycode_url">https://github.com/Deiow/SOCKS5-Proxy-Ch...ks5_udp.py</a><br />
<br />
One more thing regarding this script, in order to validate that the UDP support is really working the script also sends a packet via the proxy to a destination address that must communicate via UDP.<br />
<div class="codeblock"><div class="title">Code:</div><br /><div class="body" dir="ltr"><code># Target server for testing<br />
TARGET_HOST = "ip"<br />
TARGET_PORT = port<br />
<br />
# UDP message<br />
UDP_MESSAGE = 'Hello world!'</code></div></div><br />
The test is done via function test_udp():<br />
<div class="codeblock"><div class="title">Code:</div><br /><div class="body" dir="ltr"><code>def test_udp(self) -&gt; bool:<br />
        """Send Source Engine query and wait for response"""<br />
        try:<br />
            # Build and send UDP packet<br />
            udp_packet = self.build_udp_packet(UDP_MESSAGE)<br />
            self.udp_sock.sendto(udp_packet, (self.udp_relay_ip, self.udp_relay_port))<br />
<br />
            # Wait for response<br />
            try:<br />
                data, addr = self.udp_sock.recvfrom(4096)<br />
                return True<br />
            except socket.timeout:<br />
                return False<br />
<br />
        except Exception:<br />
            return False</code></div></div><br />
If this validation check is not ok, then the proxy is discarded and not saved into the output file.]]></description>
			<content:encoded><![CDATA[Working on a project that required to communicate via UDP and have proxied connections (via UDP too) I asked Claude AI to write me a python3 script that would parse a list of SOCKS5 proxies and would check + save into a file all the proxies that support UDP (UDP association for SOCKS5).<br />
The script was made only for SOCKS5 protocol and worked very well in finding proxies that support UDP.<br />
Also, one thing that I came across, UDP proxies are pretty rare and after parsing a list of over 500000 IPs, only a few had UDP support enabled (a list of the proxies found is here: <a href="https://github.com/Deiow/SOCKS5-Proxy-Checker/blob/main/socks5_proxies.txt" target="_blank" rel="noopener" class="mycode_url">https://github.com/Deiow/SOCKS5-Proxy-Ch...roxies.txt</a>).<br />
<br />
The script can be found on Github -&gt; <a href="https://github.com/Deiow/SOCKS5-Proxy-Checker/blob/main/test_socks5_udp.py" target="_blank" rel="noopener" class="mycode_url">https://github.com/Deiow/SOCKS5-Proxy-Ch...ks5_udp.py</a><br />
<br />
One more thing regarding this script, in order to validate that the UDP support is really working the script also sends a packet via the proxy to a destination address that must communicate via UDP.<br />
<div class="codeblock"><div class="title">Code:</div><br /><div class="body" dir="ltr"><code># Target server for testing<br />
TARGET_HOST = "ip"<br />
TARGET_PORT = port<br />
<br />
# UDP message<br />
UDP_MESSAGE = 'Hello world!'</code></div></div><br />
The test is done via function test_udp():<br />
<div class="codeblock"><div class="title">Code:</div><br /><div class="body" dir="ltr"><code>def test_udp(self) -&gt; bool:<br />
        """Send Source Engine query and wait for response"""<br />
        try:<br />
            # Build and send UDP packet<br />
            udp_packet = self.build_udp_packet(UDP_MESSAGE)<br />
            self.udp_sock.sendto(udp_packet, (self.udp_relay_ip, self.udp_relay_port))<br />
<br />
            # Wait for response<br />
            try:<br />
                data, addr = self.udp_sock.recvfrom(4096)<br />
                return True<br />
            except socket.timeout:<br />
                return False<br />
<br />
        except Exception:<br />
            return False</code></div></div><br />
If this validation check is not ok, then the proxy is discarded and not saved into the output file.]]></content:encoded>
		</item>
	</channel>
</rss>