Skip to content

Instantly share code, notes, and snippets.

View kxbin's full-sized avatar
💭
I may be slow to respond.

Jabin Kong kxbin

💭
I may be slow to respond.
  • GuangZhou,China
View GitHub Profile
@buananetpbun
buananetpbun / Port Knocking Maker or Generator Icmp + Packet Size
Created December 27, 2021 03:00
Port Knocking Maker or Generator Icmp + Packet Size
How Port Knocking Maker - Mikrotik Script RouterOS
In computer networking, port knocking is a method of externally opening ports on a firewall by generating a connection attempt on a set of prespecified closed ports. Once a correct sequence of connection attempts is received, the firewall rules are dynamically modified to allow the host which sent the connection attempts to connect over specific port(s). A variant called single packet authorization (SPA) exists, where only a single "knock" is needed, consisting of an encrypted packet.
The primary purpose of port knocking is to prevent an attacker from scanning a system for potentially exploitable services by doing a port scan, because unless the attacker sends the correct knock sequence, the protected ports will appear closed
###########################################################
# Mikrotik Port Knocking Generator with Icmp + Packet Size
# Date/Time: 2/14/2021, 12:14:10 PM
# https://fb.me/buananet.pbun
##################################################
@chadselph
chadselph / flaskwithcron.py
Last active April 21, 2022 10:20
flask with "cron"-like loop
from flask import Flask, render_template, jsonify, request
from threading import Timer, Thread
from time import sleep
app = Flask(__name__)
@app.route("/api/<method>")
def api(method):
data = {