Skip to content

Instantly share code, notes, and snippets.

View AnonQuebec's full-sized avatar

AnonQC-Yuuki AnonQuebec

View GitHub Profile
from shodan import Shodan
import subprocess as sp
import requests
api = Shodan("iG0r3X7hjuIVWlopWTyy8DPO7eIF3wEG")
def clrscr():
sp.call(["clear"], shell=True)
def breakline():
@AnonQuebec
AnonQuebec / htaccess.txt
Created May 18, 2022 14:50 — forked from shinryux/htaccess.txt
htaccess for ryuframework
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
@AnonQuebec
AnonQuebec / TowerDestroyTheWeakest.py
Last active June 25, 2018 05:38
empireofcode offence
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"]