Skip to content

Instantly share code, notes, and snippets.

View SegoCode's full-sized avatar
🏠
Working from home

SegoCode SegoCode

🏠
Working from home
View GitHub Profile
@SegoCode
SegoCode / filter.txt
Created October 18, 2023 08:49
Youtube adblock uBlock origin filter
youtube.com##body:style(overflow-y:auto!important; max-height:none!important; width:auto!important; position:static!important;)
youtube.com##+js(set, yt.config_.openPopupConfig.supportedPopups.adBlockMessageViewModel, false)
youtube.com##+js(set, Object.prototype.adBlocksFound, 0)
youtube.com##+js(set, ytplayer.config.args.raw_player_response.adPlacements, [])
youtube.com##+js(set, Object.prototype.hasAllowedInstreamAd, true)
youtube.com##+js(set, yt.config_.openPopupConfig.supportedPopups.adBlockMessageViewModel, false)
youtube.com##+js(set, Object.prototype.adBlocksFound, 0)
youtube.com##+js(set, ytplayer.config.args.raw_player_response.adPlacements, [])
youtube.com##+js(set, Object.prototype.hasAllowedInstreamAd, true)
youtube.com##ytd-popup-container:remove()
@SegoCode
SegoCode / portainer.sh
Last active September 3, 2022 10:05
Fresh docker install in linux
#!/bin/bash
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
function check_internet() {
printf "Checking if you are online..."
wget -q --spider http://github.com
@SegoCode
SegoCode / GoFinder.go
Last active January 10, 2022 01:47
Admin panel finder in golang
package main
import (
"bufio"
"fmt"
"net/http"
"net/url"
"os"
"sync"
)
param (
[string]$list = "AdminList.txt",
[Parameter(Mandatory=$true)][string]$url
)
if(-NOT ([uri]$url).IsAbsoluteUri){
Write-Host "URL IS INVALID " -ForegroundColor red
Write-Host "Example: AdminFinder.ps1 -url http://www.google.com " -ForegroundColor red
exit
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
/*
_____ _ _ _____ _ _
@SegoCode
SegoCode / Pack.exe
Last active February 11, 2020 18:05
Strings from Pack.exe Binary
File pos Mem pos ID Text
======== ======= == ====
00000000004D 00000040004D 0 !This program cannot be run in DOS mode.
000000000178 000000400178 0 .text
0000000001A0 0000004001A0 0 .data
0000000002DF 0000004002DF 0 B/109
000000000307 000000400307 0 B.idata
000000000330 000000400330 0 .symtab
@SegoCode
SegoCode / Hide.ps1
Last active August 12, 2019 07:34
Hide console from powershell script
#----------------------HIDE SCRIPT------------------------------#
Add-Type -Name Window -Namespace Console -MemberDefinition '
[DllImport("Kernel32.dll")]
public static extern IntPtr GetConsoleWindow();
[DllImport("user32.dll")]
public static extern bool ShowWindow(IntPtr hWnd, Int32 nCmdShow);
'
@SegoCode
SegoCode / HoneyPot.java
Created May 29, 2019 00:46
Java file honeypot for ransomware
public class HoneyPot {
public static void main(String[] args) throws IOException, InterruptedException {
JOptionPane.showMessageDialog(null, "Honeypot created,\nMonitoring file");
Path path = FileSystems.getDefault().getPath(System.getProperty("user.home"), "Documents");
File file = new File(path + "\\Password.docx");
file.createNewFile();
WatchService watchService = FileSystems.getDefault().newWatchService();
WatchKey watchKey = path.register(watchService, StandardWatchEventKinds.ENTRY_DELETE);