This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 123 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from concurrent.futures import ThreadPoolExecutor, as_completed | |
| from loguru import logger | |
| import json | |
| import threading | |
| import os | |
| import requests | |
| import re | |
| import ipaddress | |
| # ------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| modify_ssh_config() { | |
| sed -i 's/^#\?Port .*/Port 4747/' /etc/ssh/sshd_config | |
| sed -i 's/^#\?PermitRootLogin .*/PermitRootLogin without-password/' /etc/ssh/sshd_config | |
| sed -i 's/^#\?PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config | |
| if systemctl is-active --quiet ssh; then | |
| systemctl restart ssh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://tracker.driverpacks.net:6969/stats?mode=tpbs&format=ben | |
| -> per torrent: hash (ben-encoded), complete, downloaded, incomplete | |
| http://tracker.driverpacks.net:6969/stats?mode=tpbs&format=txt | |
| -> per torrent: hash, seeders, leechers | |
| http://tracker.driverpacks.net:6969/stats?mode=statedump | |
| -> per torrent: hash, base (time in minutes since epoch when the torrent last had >0 peers, *60 = unix timestamp), downloaded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #https://stackoverflow.com/questions/5637268/how-do-you-decode-info-hash-information-from-tracker-announce-request | |
| #https://stackoverflow.com/questions/8088375/how-do-i-convert-a-single-character-into-its-hex-ascii-value-in-python | |
| #https://gist.github.com/dirkomatik/2274843 | |
| #https://blog.csdn.net/iodoo/article/details/49175749 | |
| #info_hash = "m%cdh%f6%18%f0k%a9O%04%60%9f%3ek%03%91%9a%9a%0b%88" | |
| info_hash = input('Enter http hash:')#like that↑ | |
| hash = "" | |
| i = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| set -x | |
| mkdir ~/transmission | |
| cd ~/transmission | |
| PREFIX=/opt |