add vpn support
This commit is contained in:
parent
4af08a9d82
commit
d775952547
|
@ -0,0 +1,58 @@
|
|||
Albania
|
||||
Chile
|
||||
Georgia
|
||||
Israel
|
||||
New_Zealand
|
||||
Slovenia
|
||||
Ukraine
|
||||
Argentina
|
||||
Costa_Rica
|
||||
Germany
|
||||
Italy
|
||||
North_Macedonia
|
||||
South_Africa
|
||||
United_Kingdom
|
||||
Australia
|
||||
Croatia
|
||||
Greece
|
||||
Japan
|
||||
Norway
|
||||
South_Korea
|
||||
United_States
|
||||
Austria
|
||||
Cyprus
|
||||
Hong_Kong
|
||||
Latvia
|
||||
Poland
|
||||
Spain
|
||||
Vietnam
|
||||
Belgium
|
||||
Czech_Republic
|
||||
Hungary
|
||||
Luxembourg
|
||||
Portugal
|
||||
Sweden
|
||||
Bosnia_And_Herzegovina
|
||||
Denmark
|
||||
Iceland
|
||||
Malaysia
|
||||
Romania
|
||||
Switzerland
|
||||
Brazil
|
||||
Estonia
|
||||
India
|
||||
Mexico
|
||||
Serbia
|
||||
Taiwan
|
||||
Bulgaria
|
||||
Finland
|
||||
Indonesia
|
||||
Moldova
|
||||
Singapore
|
||||
Thailand
|
||||
Canada
|
||||
France
|
||||
Ireland
|
||||
Netherlands
|
||||
Slovakia
|
||||
Turkey
|
2
crawl.py
2
crawl.py
|
@ -27,7 +27,7 @@ from termcolor import colored
|
|||
from yggcrawl import YggTorrentScraper
|
||||
scraper = YggTorrentScraper(requests.session())
|
||||
from yggtorrentscraper import set_yggtorrent_tld
|
||||
set_yggtorrent_tld("se")
|
||||
set_yggtorrent_tld("si")
|
||||
name = ' '.join(sys.argv[1:])
|
||||
|
||||
# Search torrent name
|
||||
|
|
10
install.sh
10
install.sh
|
@ -80,6 +80,16 @@ iptubes() {
|
|||
nano login.py
|
||||
}
|
||||
|
||||
nordvpn() {
|
||||
wget -qnc https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb -O /tmp/nordvpn.deb
|
||||
sudo dpkg -i /tmp/nordvpn.dev
|
||||
rm /tmp/nordvpn.dev
|
||||
|
||||
sudo apt update
|
||||
sudo apt install nordvpn
|
||||
}
|
||||
|
||||
|
||||
# Check installs
|
||||
[[ -z $(which ipfs) ]] && ipfs
|
||||
[[ -z $(which sbotc) ]] && sbotc
|
||||
|
|
|
@ -56,6 +56,15 @@ get_details() {
|
|||
fi
|
||||
}
|
||||
|
||||
vpn() {
|
||||
[[ ! $(which nordvpn) ]] && echo "Installaling NordVPN client... && ./install.sh nordvpn"
|
||||
vpn_citie=$(shuf -n1 .vpn/countries)
|
||||
echo "Warning: trying to connect to random cities in the world via NordVPN. If you are connected to this machine via SSH, you will lost the connection..."
|
||||
echo "VPN connection in 5 seconds, press CTRL+C to cancel..."
|
||||
sleep 5
|
||||
nordvpn c $vpn_citie
|
||||
}
|
||||
|
||||
$1
|
||||
|
||||
[[ $err == 1 ]] && exit 1 || exit 0
|
||||
|
|
Loading…
Reference in New Issue