Skip to content

Instantly share code, notes, and snippets.

Avatar
♠️

KING SABRI KINGSABRI

♠️
View GitHub Profile
@KINGSABRI
KINGSABRI / clrHosting_v4.0.cpp
Created Jun 24, 2021 — forked from aaaddress1/clrHosting_v4.0.cpp
CLR Hosting: running dotNet binary in C/C++ & rewrite from .NET(4+) COM interface
View clrHosting_v4.0.cpp
// CLR Hosting, by aaaddress1@chroot.org
//
// 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 Jun 3, 2021
KDE Plasma Dark Color Schema
View KDE-Plasma-Dark.colors
[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 Jun 1, 2021
Ruby optparse example
View script.rb
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 Sep 6, 2019
A simple HTTP Server in Ruby
View httpd.rb
#!/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 Mar 12, 2019
Powerline-shell Configuration file
View .powerline-shell.json
{
"segments": [
"virtual_env",
"username",
"ssh",
"cwd",
"git",
"hg",
"jobs",
"set_term_title",
@KINGSABRI
KINGSABRI / injector.cpp
Created Nov 18, 2018 — forked from Barakat/injector.cpp
Code injection using shared sections
View injector.cpp
#include <Windows.h>
#include <ntdef.h>
#include <cstdint>
#include <cassert>
#include <cstring>
#include <cstdio>
typedef enum
{
@KINGSABRI
KINGSABRI / tomcat-directory.list
Created Nov 7, 2018
Tomcat Dictionary list for Directory brute
View tomcat-directory.list
/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 Oct 2, 2019
PowerShell Disable Windows10 Auto update and Security
View Disable-Windows10-autoupdate-and-security.ps1
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"){
View gist:cf45e054d91ff8821acd99561c42c9d2
#!/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])
View RubyNmap.rb
#!/usr/bin/env ruby
# list databases on MySQL servers. Must have login credential
Nmap::Program.scan do |task|
task.ports = 443
task.script = 'smb-security-mode'
# check the script params
# https://nmap.org/nsedoc/scripts/smb-security-mode.html
# https://nmap.org/nsedoc/lib/smb.html#script-args
# https://nmap.org/nsedoc/lib/smbauth.html#script-args