ChatGPT or GPT Program?

What are the ChatGPT helping everything?

This is an example for help you to write a code.

For this example I have try to ask GPT kind of networking knowledge ask it about an example. I got this

無圖片說明

Not very good coding right? You want more details of the connection, in this example, Tor has the other connection method using `sessions`, that ask him like the following.

無圖片說明

look nice, he rebuild the example to me with the last conditions and add the new order into the example builder. As well What I say it's help developer it doesn't means you can cat fish about it.

After the example I still need to use my user needs to modify the cod to be the following.

import re, io, os, sys, json, time, requests, sqlite_util
import socks, socket


session = requests.session()
session.proxies = {}
session.proxies['http'] = 'socks5h://localhost:9050'
session.proxies['https'] = 'socks5h://localhost:9050'


headers = {
    "content-type": "applications/json"
}
payload = {}


def main():
  url = sys.argv[1]


  real_ip = requests.get("https://api.ipify.org").text
  print(f"Your real IP address is: {real_ip}")


  tor_ip = session.get("https://api.ipify.org", data=payload).text
  print(f"The Tor proxies IP address is: {tor_ip}")


  _req = session.get(url, headers=headers, data=payload)
  print(f"[URL INPUTED: ]{url}\n===REPORT(TOR)===\nSTATUS CODE: {_req.status_code}")


if __name__ == "__main__":
  main()        

I have use the command code for fast scan the target with using sys.argv so if you have setup the correct tor proxy and run this code you will get the parity result like this.

無圖片說明

you can see your real IP and Tor IP request test with tor and the response code.

Anything if you want to print out more by the code.

This just the playground, if you are also looking for the AI topics jobs, welcome to request me.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了