This file contains 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 shodan import Shodan | |
import subprocess as sp | |
import requests | |
api = Shodan("iG0r3X7hjuIVWlopWTyy8DPO7eIF3wEG") | |
def clrscr(): | |
sp.call(["clear"], shell=True) | |
def breakline(): |
This file contains 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
Options All -Indexes | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^{domain}$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^{domain}$ | |
RewriteCond %{REQUEST_URI} !public/ | |
RewriteRule (.*) /public/$1 [L] | |
# START BAD BOTS ### DO NOT EDIT THIS LINE AT ALL ### | |
BrowserMatchNoCase "(?:\b)360Spider(?:\b)" bad_bot |
This file contains 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 battle import commander | |
unit_client = commander.Client() | |
my_info = unit_client.ask_my_info() | |
def search_target(data=None, **kwargs): | |
towers = unit_client.ask_towers() | |
print("List of towers:{}".format(towers)) | |
if towers: | |
tower_id = towers[0]["id"] |