Update bundler and ruby
This commit is contained in:
parent
3a6cd70a1e
commit
d0a526e98a
|
@ -10,7 +10,7 @@ addons:
|
||||||
- dnsutils
|
- dnsutils
|
||||||
- idn
|
- idn
|
||||||
rvm:
|
rvm:
|
||||||
- 2.4.1
|
- 2.6.3
|
||||||
before_install:
|
before_install:
|
||||||
- openssl aes-256-cbc -K $encrypted_9e883639804e_key -iv $encrypted_9e883639804e_iv -in deploy-key.enc -out deploy-key -d
|
- openssl aes-256-cbc -K $encrypted_9e883639804e_key -iv $encrypted_9e883639804e_iv -in deploy-key.enc -out deploy-key -d
|
||||||
- chmod 600 deploy-key
|
- chmod 600 deploy-key
|
||||||
|
@ -18,6 +18,9 @@ before_install:
|
||||||
- ssh-add deploy-key
|
- ssh-add deploy-key
|
||||||
- git config user.name "TLD List Bot"
|
- git config user.name "TLD List Bot"
|
||||||
- git config user.email "tld-bot@captnemo.in"
|
- git config user.email "tld-bot@captnemo.in"
|
||||||
|
# Update bundler: https://docs.travis-ci.com/user/languages/ruby/
|
||||||
|
- gem update --system
|
||||||
|
- gem install bundler
|
||||||
script:
|
script:
|
||||||
- wget "https://data.iana.org/TLD/tlds-alpha-by-domain.txt" --output-document tlds.txt
|
- wget "https://data.iana.org/TLD/tlds-alpha-by-domain.txt" --output-document tlds.txt
|
||||||
- ./scan.sh
|
- ./scan.sh
|
||||||
|
|
7
scan.sh
7
scan.sh
|
@ -1,5 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script runs a scan for all available TLDs, and notes
|
||||||
|
# down the TLDs that resolve to `website/template.md`
|
||||||
|
#
|
||||||
|
# It also puts some information about the IP Adress from where
|
||||||
|
# the scan was run (might be relevant for DNS lookups) into
|
||||||
|
# `website/_data/ip.json`. Structure is at ipapi.co
|
||||||
|
|
||||||
for domain in $(grep -v '^#' tlds.txt); do
|
for domain in $(grep -v '^#' tlds.txt); do
|
||||||
RESULT=$(dig +time=1 +tries=1 +short "$domain" | head -c -1 | tr '\n' '@' | sed 's/@/`,`/g' | grep -v "connection timed out")
|
RESULT=$(dig +time=1 +tries=1 +short "$domain" | head -c -1 | tr '\n' '@' | sed 's/@/`,`/g' | grep -v "connection timed out")
|
||||||
if [ ! -z "$RESULT" ]; then
|
if [ ! -z "$RESULT" ]; then
|
||||||
|
|
Loading…
Reference in New Issue