Skip to content

Instantly share code, notes, and snippets.

View CallMarl's full-sized avatar
🏠
Working from home

Paul PRIKAZSKY CallMarl

🏠
Working from home
View GitHub Profile
@CallMarl
CallMarl / parse.py
Last active August 26, 2022 10:30
Python simple HTML Parser implementation (example)
from html.parser import HTMLParser
class Node :
def __init__(self, tag, tag_text) :
self.initial = tag
self.tag = "<%s>" % tag
self.tag_text = tag_text
def __str__(self) :
@CallMarl
CallMarl / 0_initial_install.sh
Last active April 27, 2022 14:10
Setup self signed SSL certificate.
apt-get install easy-rsa
### Create the tool for the publique key infrastructure center.
#
# Required to generate the certifate request to the CA.
#
# Notice : All the stuff can be done with only one instance of
# easy RSA but it's easier to understand from this way.
mkdir -p /usr/local/src/easyrsa-pki
cp /usr/share/easy-rsa/easyrsa /usr/local/src/easyrsa-pki/
#!/bin/bash
count=1
while [ $count -lt 10 ]
do
wget https://share.vx-underground.org/Conti/Training%20Material%20Leak/conti.7z.00$count
((count++))
done
while [ $count -lt 100 ]
@CallMarl
CallMarl / README.md
Last active October 1, 2021 10:51
Enable UDP encapsulation for L2TP/IPsec VPN

FIX MISSED CONNEXION

From the client, if the VPN serveur type is L2TP/IPsec execute as admin the command bellow to enable UDPEncapsulation then restart computer.

@CallMarl
CallMarl / README.md
Created September 26, 2020 15:31
Remote Connexion to windows server

Manage remote connexion to windows servers

To connect to remote server you need to start specific service named winrm (Windows Remote Management) on both computer (client/server). winrm is also a commande line used to configure the winrm service. Windows Remote Management is base on specific protocol named WS-MAN (WS-Management protocol).

@CallMarl
CallMarl / README.md
Created April 14, 2020 16:18
Hacking tools
@CallMarl
CallMarl / README.md
Last active April 3, 2020 08:54
Linux utils script

file location:

  • /usr/local/src/vim_cleaner.sh
vim_cleaner.sh
chown root vim_cleaner.sh && chgrp root vim_cleaner.sh
chmod 775 /usr/local/src/vim_cleaner.sh # 771
ln -sf /usr/local/src/vim_cleaner.sh /usr/local/bin/cleaner
@CallMarl
CallMarl / .gdbinit
Last active October 15, 2020 09:43
GDB usual command
# Set assembleur display as intel norme
set disassembly-flavor intel
# Enable step mode
set step-mode on
# Follow child
set follow-fork-mode child
@CallMarl
CallMarl / docker.sh
Last active April 3, 2020 08:43
Docker usual command
# Pull image on local area
docker pull image_name
# Run image (not persistent)
docker run image_name
# Display volume
docker volume ls
# Create volume
@CallMarl
CallMarl / README.md
Created April 1, 2020 17:56
Setup linux firewall (debian)

file location :

  • /usr/local/src/firewall.sh
chown root /usr/local/src/firewall.sh
chgrp root /usr/local/src/firewall.sh

ln -sf /usr/local/src/firewall.sh /usr/local/sbin/firewall