Skip to content

Instantly share code, notes, and snippets.

View Th3Shadowbroker's full-sized avatar
:octocat:
Stay curious. Be creative.

Jens Fischer Th3Shadowbroker

:octocat:
Stay curious. Be creative.
View GitHub Profile
@Th3Shadowbroker
Th3Shadowbroker / split-into-batches.go
Created July 16, 2023 17:33
Example for splitting a slice of any type into batches with predefined sizes. The size of the last slice will be adjustes to the left over elements.
func SplitIntoBatches[T any](slice []T, batchSize int) [][]T {
var batches = make([][]T, 0)
var limit = len(slice) - 1
for i := 0; i < len(slice); i += batchSize {
var start = i
var end = i + batchSize
if end > limit {
batches = append(batches, slice[start:limit+1])
@Th3Shadowbroker
Th3Shadowbroker / hide-seconds-in-taskbar.reg
Last active May 13, 2023 12:47
Show/hide seconds in the windows taskbar
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowSecondsInSystemClock"=-
@Th3Shadowbroker
Th3Shadowbroker / twitter-remove-view-count.js
Last active January 27, 2023 17:41
Remove the view count no one asked for from the timeline view.
// ==UserScript==
// @name Remove View Count
// @namespace https://github.com/th3shadowbroker
// @version 1.0.1
// @updateURL https://gist.githubusercontent.com/Th3Shadowbroker/12c03bbcecbc0876bc67c386a77645a6/raw
// @downloadURL https://gist.githubusercontent.com/Th3Shadowbroker/12c03bbcecbc0876bc67c386a77645a6/raw
// @description Remove the view count no one asked for from the timeline view.
// @author Th3Shadowbroker
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
<?php
require 'SpigetAPI.php';
use de\m4taiori\spiget4php\SpigetAPI as SpigetAPI;
//Yes you can use 'new' but getInstance() is a better way because you don't have to create a ton of instances.
$spiget = SpigetAPI::getInstance();
/*
* Some functions use optional arguments/parameters. Use null if you want to use the default value
* defined by the spiget-web-api.

Keybase proof

I hereby claim:

  • I am Th3Shadowbroker on github.
  • I am th3shadowbroker (https://keybase.io/th3shadowbroker) on keybase.
  • I have a public key whose fingerprint is 25C7 2A0A 3E34 51A0 92D1 07BD B27F 536A 8ED0 F9CF

To claim this, I am signing this object:

# Simulate fake processes of analysis sandbox/VM that some malware will try to evade
# This just spawn ping.exe with different names (wireshark.exe, vboxtray.exe, ...)
# It's just a PoC and it's ugly as f*ck but hey, if it works...
# Usage: .\fake_sandbox.ps1 -action {start,stop}
param([Parameter(Mandatory=$true)][string]$action)
$fakeProcesses = @("wireshark.exe", "vmacthlp.exe", "VBoxService.exe",
"VBoxTray.exe", "procmon.exe", "ollydbg.exe", "vmware-tray.exe",