Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 14556

-

by euhjs - 05 March, 2023 - 02:06 AM
This post is by a banned member (euhjs) - Unhide
euhjs  
Supreme
431
Posts
27
Threads
4 Years of service
#1
(This post was last modified: 07 October, 2023 - 01:41 PM by euhjs. Edited 4 times in total.)
--
[Image: lew7v8p.png]
This post is by a banned member (euhjs) - Unhide
euhjs  
Supreme
431
Posts
27
Threads
4 Years of service
Bumped #2
(This post was last modified: 06 March, 2023 - 07:15 AM by euhjs.)
bump

This is a bump
[Image: lew7v8p.png]
This post is by a banned member (SirdLay) - Unhide
SirdLay  
Godlike
1.528
Posts
351
Threads
4 Years of service
#3
tried ChatGPT ?


 
This post is by a banned member (euhjs) - Unhide
euhjs  
Supreme
431
Posts
27
Threads
4 Years of service
#4
(06 March, 2023 - 10:50 PM)SirdLay Wrote: Show More
tried ChatGPT ?

The Bro chatgpt tell me shit like "if proxy start with Socks4, its a socks4 proxy

nothing revelent with chatgpt
[Image: lew7v8p.png]
This post is by a banned member (Makbodl) - Unhide
This post is by a banned member (euhjs) - Unhide
euhjs  
Supreme
431
Posts
27
Threads
4 Years of service
#6
(07 March, 2023 - 06:07 AM)Makbodl Wrote: Show More
What about?
Quote:function checkProxyProtocol(proxy) {
  const [ip, port] = proxy.split(":");
  return new Promise((resolve, reject) => {
    const socket = require("net").connect(port, ip, () => {
      const protocol = socket.remoteFamily === "IPv6" ? "socks6" : "socks4";
      resolve(protocol);
      socket.end();
    });
    socket.on("error", (err) => {
      reject(err);
      socket.end();
    });
  }).catch(() => "http");
}

That nice, but no socks5 and https
[Image: lew7v8p.png]
This post is by a banned member (Makbodl) - Unhide
This post is by a banned member (euhjs) - Unhide
euhjs  
Supreme
431
Posts
27
Threads
4 Years of service
#8
(07 March, 2023 - 07:31 AM)Makbodl Wrote: Show More
Try this:
Quote:function checkProxyProtocol(proxyList) {
  for (let proxy of proxyList) {
    if (proxy.startsWith("http://")) {
      return "HTTP";
    } else if (proxy.startsWith("socks4://")) {
      return "SOCKS4";
    } else if (proxy.startsWith("socks5://")) {
      return "SOCKS5";
    } else if (proxy.startsWith("https://")) {
      return "HTTPS";
    }
  }
  return "Unknown";
}

let proxies = ["http://192.168.0.1:8080", "socks4://192.168.0.2:1080", "socks5://192.168.0.3:1080", "https://192.168.0.4:443"]; // You can add your list inside the array or you can call it from a text file next to your JS file
let protocol = checkProxyProtocol(proxies);
console.log(protocol); // Output: SOCKS4

Leave Chatgpt 
noone use proxy with protocole in front, if i got the proxy i would not ask how to sort it
[Image: lew7v8p.png]

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)