Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Regex
- #r"(z\(\d+-\d+\);)+(.|\n)+?(z\(\d+-\d+\);)+"
- #Decrypter
- def ProxyListdotRoFilter(matches):
- EncodedIPList = []
- DecodedIPList = []
- EncodedPortList = []
- DecodedPortList = []
- for match in matches:
- filterEncodedData = re.finditer(r"(z\(\d+-\d+\);)+", match.group())
- filteredList = list(filterEncodedData)
- EncodedIPList.append(filteredList[0])
- EncodedPortList.append(filteredList[1])
- for encodedIP in EncodedIPList:
- cleanedString = encodedIP.group().replace("z(","").replace(")","").strip()
- splitter = cleanedString.split(';')
- decodedIP = ""
- for splitted in splitter:
- if(splitted):
- part = splitted.split('-')
- decodedIP += chr(int(part[0]) - int(part[1]))
- DecodedIPList.append(decodedIP)
- for encodedPort in EncodedPortList:
- cleanedString = encodedPort.group().replace("z(","").replace(")","").strip()
- splitter = cleanedString.split(';')
- decodedPort = ""
- for splitted in splitter:
- if(splitted):
- part = splitted.split('-')
- decodedPort += chr(int(part[0]) - int(part[1]))
- DecodedPortList.append(decodedPort)
- for i in range(0, len(DecodedPortList)):
- Dump("{0}:{1}".format(DecodedIPList[i], DecodedPortList[i]))
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement