Skip to content

Instantly share code, notes, and snippets.

View KINGSABRI's full-sized avatar
♠️

KING SABRI KINGSABRI

♠️
View GitHub Profile
@KINGSABRI
KINGSABRI / webdav.md
Last active October 9, 2022 17:12
Simple WebDav Setup
@KINGSABRI
KINGSABRI / clrHosting_v4.0.cpp
Created June 24, 2021 23:17 — forked from aaaddress1/clrHosting_v4.0.cpp
CLR Hosting: running dotNet binary in C/C++ & rewrite from .NET(4+) COM interface
// CLR Hosting, by [email protected]
//
// it's a new edition rewrite for .NET(4+) COM interface
// original from github.com/etormadiv/HostingCLR
// & blog.xpnsec.com/hiding-your-dotnet-etw
//
// this PoC supports the following .NET entry:
// >>>> static void Main(string[] args);
//
#include <stdio.h>
@KINGSABRI
KINGSABRI / KDE-Plasma-Dark.colors
Created June 3, 2021 08:12
KDE Plasma Dark Color Schema
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
[ColorEffects:Inactive]
@KINGSABRI
KINGSABRI / script.rb
Created June 1, 2021 18:30
Ruby optparse example
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'mail', require: 'mail'
gem 'json', require: 'json'
gem 'optparse', require: true
gem 'ostruct', require: true
end
@KINGSABRI
KINGSABRI / httpd.rb
Created September 6, 2019 12:26
A simple HTTP Server in Ruby
#!/usr/bin/env ruby
#
# Author: Sabri (@KINGSABRI)
#
require 'webrick'
require 'webrick/https'
require 'optparse'
options = {
ip: '0.0.0.0',
@KINGSABRI
KINGSABRI / .powerline-shell.json
Created March 12, 2019 03:26
Powerline-shell Configuration file
{
"segments": [
"virtual_env",
"username",
"ssh",
"cwd",
"git",
"hg",
"jobs",
"set_term_title",
@KINGSABRI
KINGSABRI / injector.cpp
Created November 18, 2018 10:08 — forked from Barakat/injector.cpp
Code injection using shared sections
#include <Windows.h>
#include <ntdef.h>
#include <cstdint>
#include <cassert>
#include <cstring>
#include <cstdio>
typedef enum
{
@KINGSABRI
KINGSABRI / tomcat-directory.list
Created November 7, 2018 05:18
Tomcat Dictionary list for Directory brute
/admin
/admin-console
/docs/
/examples
/examples/jsp/index.html
/examples/jsp/snp/snoop.jsp
/examples/jsp/source.jsp
/examples/servlet/HelloWorldExample
/examples/servlet/SnoopServlet
/examples/servlet/TroubleShooter
@KINGSABRI
KINGSABRI / Disable-Windows10-autoupdate-and-security.ps1
Last active October 2, 2019 11:26
PowerShell Disable Windows10 Auto update and Security
Clear-Host
Write-Host "1 -> Never check for updates"
Write-Host "2 -> Disable Windiws Firewall"
Write-Host "3 -> Disable Windiws Defender"
Write-Host "Enter any character to exit"
Write-Host
switch(Read-Host "Choose Window Update Settings"){
#!/usr/bin/env crystal
#
# Author: KING SABRI | @KINGSABRI
# Description: Base64 encoding all characters in a given payload
# Requirements: None
#
require "json"
require "base64"
json = JSON.parse(ARGV[0])