Skip to content

Instantly share code, notes, and snippets.

@geraked
geraked / latex-clean.bat
Created May 9, 2023 10:48
Batch Script for Windows to Clean LaTeX Auxiliary Files
@echo off
title Delete LaTeX Auxiliary Files
setlocal
@REM Core latex/pdflatex auxiliary files:
del /f /s /q *.aux
del /f /s /q *.lof
del /f /s /q *.log
del /f /s /q *.lot
del /f /s /q *.fls
@geraked
geraked / triangle_counting.ipynb
Last active September 20, 2022 06:24
Implementations of the algorithms for the adjacency list model in the experiments in the paper "Triangle and Four Cycle Counting with Predictions in Graph Streams"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@geraked
geraked / texalg.py
Last active July 20, 2022 06:32
algpseudocode & algorithmic notation converter for latex
"""
Latex Algorithm Converter
- Convert "algorithmic" notations to "algpseudocode"
- Convert "algpseudocode" notations to "algorithmic"
"""
D = (
('STATE', 'State'),
('ENDIF', 'EndIf'),
('ENDWHILE', 'EndWhile'),
@geraked
geraked / tor.php
Last active October 6, 2021 09:42
PHP Tor Controller
<?php
/**
* Desc: PHP Tor Controller
* Author: Rabist - https://www.linkedin.com/in/rabist
* Source URI: https://gist.github.com/geraked/334c6f1c3b8fbd607f8c7788e7d92f81
* Date: 2021-07-14
*/
@geraked
geraked / mdlqbc.py
Last active July 18, 2021 07:40
Convert xml questions bank of moodle to word
"""
Title: mdlqbc
Desc: Convert xml questions bank of moodle to word
Author: Rabist - https://www.linkedin.com/in/rabist
Date: 2021-07-07
"""
import argparse
import os
@geraked
geraked / bs_ie_ex4_ipidscanner.py
Last active June 28, 2021 06:27
Perform idle scan i.e. scanning victim through zombie with scapy
"""
Title: Exercise 4 - Scapy
Desc: Perform idle scan i.e. scanning victim through zombie with scapy
Course: Internet Engineering - Undergraduate
Author: Rabist - https://www.linkedin.com/in/rabist
Teacher: Dr. Mehran Shetabi - https://yazd.ac.ir/en/people/shetabi
Univ: Yazd University
Semester: Spring 1400
Date: 2021-06-4
@geraked
geraked / bs_ie_ex3_ipidseq.py
Last active June 28, 2021 06:26
Check pattern in IPID generation on a target with scapy
"""
Title: Exercise 3 - Scapy
Desc: Check pattern in IPID generation on a target with scapy
Course: Internet Engineering - Undergraduate
Author: Rabist - https://www.linkedin.com/in/rabist
Teacher: Dr. Mehran Shetabi - https://yazd.ac.ir/en/people/shetabi
Univ: Yazd University
Semester: Spring 1400
Date: 2021-06-3
@geraked
geraked / bs_ie_ex2_tcpsynscan.py
Last active June 28, 2021 06:25
Scan ports with scapy
"""
Title: Exercise 2 - Scapy
Desc: Scan ports with scapy
Course: Internet Engineering - Undergraduate
Author: Rabist - https://www.linkedin.com/in/rabist
Teacher: Dr. Mehran Shetabi - https://yazd.ac.ir/en/people/shetabi
Univ: Yazd University
Semester: Spring 1400
Date: 2021-06-2
@geraked
geraked / bs_ie_ex1_hdtcpsyn.py
Last active June 28, 2021 06:25
Discover live hosts on a network
"""
Title: Exercise 1 - Scapy
Desc: Discover live hosts on a network
Course: Internet Engineering - Undergraduate
Author: Rabist - https://www.linkedin.com/in/rabist
Teacher: Dr. Mehran Shetabi - https://yazd.ac.ir/en/people/shetabi
Univ: Yazd University
Semester: Spring 1400
Date: 2021-06-1
@geraked
geraked / bs_ie_p3_portscanner.py
Last active June 28, 2021 06:24
Scan open ports with nmap
"""
Title: Project 3 - Port Scanner
Desc: Scan open ports with nmap
Course: Internet Engineering - Undergraduate
Author: Rabist - https://www.linkedin.com/in/rabist
Teacher: Dr. Mehran Shetabi - https://yazd.ac.ir/en/people/shetabi
Univ: Yazd University
Semester: Spring 1400
Date: 2021-05-22