Skip to content

Instantly share code, notes, and snippets.

Avatar

Orsiris de Jong deajan

View GitHub Profile
@deajan
deajan / admin_elevator.py
Last active Mar 27, 2020
Python elevation code that works on Windows and Linux, with Nuitka, PyInstaller and CPython
View admin_elevator.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017-2020 Orsiris de Jong
# This file is part of command_runner module
"""
elevate is a Windows/ unix compatible function elevator for Python 3+
usage:
View smartd_pyngui-3.7.2-win32-64.json
{"calls": [["Crypto", "Crypto"], ["Crypto.Cipher", "Crypto.Cipher"], ["Crypto.Cipher.AES", "Crypto.Cipher"], ["Crypto.Cipher._create_cipher", "Crypto.Cipher"], ["Crypto.Cipher._mode_cbc", "Crypto.Cipher._mode_cbc"], ["Crypto.Cipher._mode_cbc._create_cbc_cipher", "Crypto.Cipher._mode_cbc"], ["Crypto.Cipher._mode_ccm", "Crypto.Cipher._mode_ccm"], ["Crypto.Cipher._mode_ccm._create_ccm_cipher", "Crypto.Cipher._mode_ccm"], ["Crypto.Cipher._mode_cfb", "Crypto.Cipher._mode_cfb"], ["Crypto.Cipher._mode_cfb._create_cfb_cipher", "Crypto.Cipher._mode_cfb"], ["Crypto.Cipher._mode_ctr", "Crypto.Cipher._mode_ctr"], ["Crypto.Cipher._mode_ctr._create_ctr_cipher", "Crypto.Cipher._mode_ctr"], ["Crypto.Cipher._mode_eax", "Crypto.Cipher._mode_eax"], ["Crypto.Cipher._mode_eax._create_eax_cipher", "Crypto.Cipher._mode_eax"], ["Crypto.Cipher._mode_ecb", "Crypto.Cipher._mode_ecb"], ["Crypto.Cipher._mode_ecb._create_ecb_cipher", "Crypto.Cipher._mode_ecb"], ["Crypto.Cipher._mode_gcm", "Crypto.Cipher._mode_gcm"], ["Crypto.Cipher._mode_
View gist:64a154cae795edb377045dc06534def4
This file has been truncated, but you can view the full file.
Statistiques de session
[ 4294967308 ] https://nextcloud.someserver.tld/call/srercfva Tue May 07 2019 15:34:29 GMT+0200 (heure dété dEurope centrale)
Identifiant PeerConnection: 1557235987674000 (id=4294967308 url=https://nextcloud.someserver.tld/call/srercfva)
Statistiques ICE
Candidat local Candidat distant ID du composant État ICE Priorité Nommé Sélectionné Octets envoyés Octets reçus
ZZ.ZZ.ZZ.ZZ:56241/undefined(host) 10.69.1.63:53122/undefined(host) 1 inprogress 9115005270282338000 false false 0 0
192.168.43.181:56240/undefined(host) 10.69.1.63:53122/undefined(host) 1 inprogress 9114160845352206000 false false 0 0
ZZ.ZZ.ZZ.ZZ:56241/undefined(host) XX.XX.XX.XX:53122/undefined(srflx) 1 frozen 7241541910156673000 false false 0 0
192.168.43.181:56240/undefined(host) XX.XX.XX.XX:53122/undefined(srflx) 1 frozen 7241541910156280000 false false 0 0
@deajan
deajan / service.py
Created Jan 24, 2019
python_service
View service.py
import win32serviceutil
import win32service
import win32event
import win32api
import servicemanager
import os
import sys
from time import sleep
import socket
@deajan
deajan / tk-test.py
Created Dec 13, 2018
tk test for nuitka
View tk-test.py
from __future__ import print_function
if str is bytes:
try:
import Tkinter as tk
except:
print("Cannot import Tkinter")
exit(1)
else:
try:
import tkinter as tk
@deajan
deajan / backup_tool_script
Last active Nov 29, 2018
backup_tool_script v0.4.4
View backup_tool_script
#!/usr/bin/env bash
PROGRAM="backup_tool_script"
PROGRAM_VERSION=0.4.4
PROGRAM_BUILD=2018110501
AUTHOR="(C) 2017-2018 by Orsiris de Jong"
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
IS_STABLE=yes
## backup_tool_script - A script to check burp backup sanity
View burpdebug.cmd
@echo off
:: quick and dirty burp debug script
setlocal enabledelayedexpansion
set curdir=%~dp0
set curdir=%curdir:~0,-1%
set curdrive=%~d0
@deajan
deajan / csv2json.sh
Created Jul 9, 2018 — forked from dsliberty/csv2json.sh
CSV to JSON converter using BASH. Original script from http://blog.secaserver.com/2013/12/convert-csv-json-bash/
View csv2json.sh
#!/bin/bash
# CSV to JSON converter using BASH
# original script from http://blog.secaserver.com/2013/12/convert-csv-json-bash/
# thanks SecaGuy!
# Usage ./csv2json.sh input.csv > output.json
input=$1
[ -z $1 ] && echo "No CSV input file specified" && exit 1
[ ! -e $input ] && echo "Unable to locate $1" && exit 1
View backup_tool_script
#!/usr/bin/env bash
PROGRAM="backup_tool_script"
PROGRAM_VERSION=0.4.0
PROGRAM_BUILD=2018021403
AUTHOR="(C) 2017-2018 by Orsiris de Jong"
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
IS_STABLE=yes
#TODO
# postponed arrays / files grow a lot. Consider having them "rolling"
@deajan
deajan / burp_tool.sh
Created Dec 4, 2017
burp_tool script
View burp_tool.sh
#!/usr/bin/env bash
PROGRAM="burp_tool"
PROGRAM_VERSION=0.2.0
PROGRAM_BUILD=2017120402
AUTHOR="(C) 2017 by Orsiris de Jong"
CONTACT="http://www.netpower.fr - ozy@netpower.fr"
IS_STABLE=no
## burp-tool.sh - A script to check burp backup sanity
You can’t perform that action at this time.