Skip to content

Instantly share code, notes, and snippets.

View shekhfiroz's full-sized avatar
🎯
Focusing

Shekh Firoz Alam shekhfiroz

🎯
Focusing
View GitHub Profile
@cestella
cestella / dga.py
Created August 15, 2016 14:45
Mock DGA Service
from flask import Flask
from flask import request,jsonify
import socket
app = Flask(__name__)
@app.route("/apply", methods=['GET'])
def predict():
h = request.args.get('host')
r = {}
if h == 'yahoo.com' or h == 'amazon.com':