Skip to content

Instantly share code, notes, and snippets.

View mubix's full-sized avatar
🎯
Focusing

Rob Fuller mubix

🎯
Focusing
View GitHub Profile
@mubix
mubix / acl.diff
Created May 12, 2022 05:17
Assign this computer account as a pre-Windows 2000 computer DACL/SACL
1165c1165
< "accountSID": "S-1-5-21-2792304509-1851296738-3446580569-1125",
---
> "accountSID": "S-1-5-21-2792304509",
1176,1437d1175
< },
< {
< "accountSID": "S-1-5-21-2792304509-1851296738-3446580569-1125",
< "aceType": "OBJECT ACCESS ALLOWED",
< "aceFlags": [
@mubix
mubix / .screenrc
Created December 30, 2020 18:28
Hak5 PES0E5 Pentest / Red Team Audit Logging ScreenRC File
defshell -bash
startup_message off
multiuser on
defscrollback 10000
logfile /opt/logs/$USER-screenlog.%H.%n.%Y%m%d-%0c:%s.%t.log
logfile flush 5
logtstamp on
deflog on
defmonitor on
caption always "%{= gk}%-Lw%{= bW}%50> %n%f* %t %{-}%+Lw%< %= %{= rk} %H %l %{= gk} %0c:%s %{-}"
@mubix
mubix / Get-CSharp.ps1
Created November 30, 2020 05:13
Powershell Get-CSharp
function Get-CSharpProcess {
$proclist = Get-Process
foreach($proc in $proclist) {
foreach($mod in $proc.Modules)
{
if($mod.ModuleName -imatch "mscoree")
{
Write-Output(".NET Found in:`t" + $proc.Name)
}
}
@mubix
mubix / areyouateapot.rb
Last active June 11, 2020 03:20
You are a teapot
#!/usr/bin/env ruby
require 'sinatra'
set :environment, :production
set :bin, '0.0.0.0'
get '/' do
status 418
body '<body style="background-color:black;"><center><img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBwgHBgkICAgKCgkLDhcPDg0NDhwUFREXIh4jIyEeICAlKjUtJScyKCAgLj8vMjc5PDw8JC1CRkE6RjU7PDn/2wBDAQoKCg4MDhsPDxs5JiAmOTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTn/wgARCAJYAu4DAREAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAAAAMEAQIFBgcI/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAECAwQF/9oADAMBAAIQAxAAAAD4aAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADrHowAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwfPgAAAAAAAD3JZzr00vS3N7MkScrN0xdl6O89PcxLAQmCJK3Ow89KWaSzEtkMYN9LGszaWTY52dVMagiKzmVGnSI655OdhbeN6Y3Bi6FOIN55/TnKz0CXU3lkWVnK183BizRR3OmbnScmJjm4tXncmxWVZ2+uehqFqRSjQ+SgAAAAAAAHuTv519Dq90mIHG5uRnW0WV7fXF7c2iE
@mubix
mubix / GetProcessList.cs
Created January 17, 2020 21:09
Get a process listing with the command line arguments
using System;
using System.Linq;
using System.Diagnostics;
using System.Management;
namespace GetProcessList
{
public static class Program
{
static void Main(string[] args)
@mubix
mubix / htb-links.md
Last active September 2, 2020 14:00
Hack the Box Repositories - Github Repositories that I have found useful during HTB challenges, Pro Labs etc
@mubix
mubix / lan.dev.txt
Created November 30, 2019 22:33
lan.dev SMB Connections
1 20110125032
1 guest
2 travel
4 Dung Trang
6 AUTHORITY\NETWORK
6 STEP-PC\soft
9 GERRARD
10 dd
11 STYG\chukoubu
12 administrator
@mubix
mubix / nosuchuser.html
Created July 12, 2019 23:47
No Such User - Spam Deterrent
<html>
<head>
<style>
* {
font-family:Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" class="email-wrapper" style="padding-top:32px;background-color:#ffffff;"><tbody>
#!/usr/bin/env ruby
require 'ruby_smb'
require 'thread'
class ThreadPool
def initialize(size)
@size = size
@jobs = Queue.new
@pool = Array.new(@size) do |i|
{
"mode": "patterns",
"proxySettings": [
{
"address": "127.0.0.1",
"port": 8080,
"username": "",
"password": "",
"type": 1,
"title": "127.0.0.1:8080",