-
Notifications
You must be signed in to change notification settings - Fork 1
/
miproxy.py
52 lines (43 loc) · 1.01 KB
/
miproxy.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
#! /usr/bin/python3
__doc__ = """# 1st Release : 24th Oct 2022 (GMT+6)
# MiProxy : Proxy Tool
# Version : 1.0
# Lisence : MIT
# Copyright (C) 2022 InferiorAK"""
import main_imports
from main_imports import *
from core import *
# Generate Random IP
if args.generate:
others.gen()
# Scrape Proxies
elif args.scrape:
if args.api:
others.scrp()
else:
print(exception)
# Check Proxy
elif args.check:
# check http
if args.type == "http":
httpsc.http_check()
elif args.type == "socks4":
socks4sc.socks4_check()
elif args.type == "socks5":
socks5sc.socks5_check()
else:
print(exception)
# Add Port
elif args.add:
if args.file:
others.add_port()
else:
print(exception)
# Print Version
elif args.version:
print(f"MiProxy {main_imports.__version__}")
else:
print(__doc__)
print("\n")
parser.print_help()