Skip to content

Commit

Permalink
fixed ngrok path
Browse files Browse the repository at this point in the history
  • Loading branch information
thewhiteh4t committed Jul 15, 2018
1 parent 9d88858 commit c2b8d9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ unzip ngrok-stable-linux-amd64.zip
mkdir Ngrok
sleep 10
mv ngrok Ngrok/
ln -s $PWD/Ngrok/ngrok /usr/local/bin/ngrok
chmod 777 /usr/local/bin/ngrok
echo
echo '[!] Copying Template to /var/www/html/'
cp -r template/nearyou/ /var/www/html/
Expand Down
6 changes: 3 additions & 3 deletions seeker.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ def version():
else:
print ('\n' + R + '[-]' + C + ' Invalid Character...Skipping...'+ W)
else:
print ('\n' + G + '[+]' + C + ' Script is up-to-date...' + W + '\n')
print ('\n' + G + '[+]' + C + ' Script is up-to-date...' + W)

def ngrok():
global api
global site
print ('\n' + G + '[!]' + C + ' Starting Apache Server...' + W)
subp.check_output(['service', 'apache2', 'start'])
print ('\n' + G + '[!]' + C + ' Checking for Ngrok Updates...' + W + '\n')
subp.call(['./Ngrok/ngrok', 'update'])
subp.call(['ngrok', 'update'])
print ('\n' + G + '[+]' + C + ' Starting Ngrok...' + W + '\n')
subp.Popen(['./Ngrok/ngrok', 'http', '80'], stdin=subp.PIPE,stderr=subp.PIPE, stdout=subp.PIPE)
subp.Popen(['ngrok', 'http', '80'], stdin=subp.PIPE,stderr=subp.PIPE, stdout=subp.PIPE)
time.sleep(10)
r1 = requests.get('{}'.format(api))
page = r1.content
Expand Down

0 comments on commit c2b8d9d

Please sign in to comment.