Skip to content

Instantly share code, notes, and snippets.

View dcgithub's full-sized avatar
💭
for those about to rock!..

dcgithub

💭
for those about to rock!..
  • None
  • Brisbane
View GitHub Profile
@NetH-Dev
NetH-Dev / Menu.hta
Created October 16, 2021 19:02
Help! I can't make it run. It says (Expected Identifier,expected sub,type mismatch)
<html>
<head>
<title>Menu Page</title>
<HTA:Application
Applicationname="NetH_Menu_Page"
ID="NU"
InnerBorder="no"
Icon="https://iconarchive.com/download/i96324/iconsmind/outline/Home-2-2.ico"
Icon="homep.ico"
@LunaMarginis
LunaMarginis / Deobscript
Last active June 30, 2022 07:04
DeobScript
<!DOCTYPE html>
<html>
<head>
<HTA:APPLICATION ID="CS"
APPLICATIONNAME="Test"
WINDOWSTATE="minimize"
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="no"
CAPTION="no"
SHOWINTASKBAR="no">
@r00t-3xp10it
r00t-3xp10it / SelfElevate.bat
Last active October 13, 2022 02:38
self elevating script (prompt UAC dialogbox)
:: Author: @r00t-3xp10it (ssa)
:: self_elevating_BAT_script - v1.0.1
:: Requirements: process LanmanServer (server)
@echo off
:: Sc query checks if 'lanmanserver' (net session) its running.
sc query "lanmanserver"|find "RUNNING" >nul
if %ERRORLEVEL% EQU 0 (
:: Net session API checks if we are running in an elevated context
:: If not then uses powershell -verb runas to relaunch batch (UAC)
@cowboy
cowboy / bit-string-encoding.js
Last active January 1, 2024 17:41
bit-string-encoding.js
// https://codesandbox.io/s/bit-string-compression-zydb3?file=/src/App.js
const name = 'test_example'
const width = 48
const height = 48
const arr = [
0xffffff000000,
0x8000017ffffe,
0xbffffd400002,
0xa00005400002,
@SPITSupport
SPITSupport / tweak1.ps1
Last active July 6, 2024 00:44
Revised tweaks
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Application]::EnableVisualStyles()
$ErrorActionPreference = 'SilentlyContinue'
$wshell = New-Object -ComObject Wscript.Shell
$Button = [System.Windows.MessageBoxButton]::YesNoCancel
$ErrorIco = [System.Windows.MessageBoxImage]::Error
If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]'Administrator')) {
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
Exit
@r00t-3xp10it
r00t-3xp10it / Update.hta
Last active July 12, 2024 12:09
meterpeter v2.10.10 - payload HTA dropper
<!--
Hta_Version: 1.0.1
Author: @r00t-3xp10it (ssa)
Application: meterpeter v2.10.10 dropper
.DESCRIPTION
This HTA changes PS 'ExecutionPolicy' to 'UnRestricted', presents a msgbox
pretending to be a security KB5005101 21H1 update, while downloads\executes
meterpeter client.ps1 (rev_tcp_shell) in background from attacker werbserver.
@OliverKrohnHH
OliverKrohnHH / DATEI Viewer EASY.cs
Last active October 12, 2022 05:41
DATEI Viewer EASY.cs
public void dataGridView_FEPADMS_CellMouseClick (object sender, DataGridViewCellMouseEventArgs e)
{
try
{
if (dataGridView_FEPADMS.RowCount > 0)
{
EVENTLOG(Convert.ToString("CLICK"),"dataGridView_FEPADMS_CellMouseClick Anzeige", e.ToString(), "DOKUMENTE",dataGridView_FEPADMS.RowCount);
@iainbryson
iainbryson / inflect.js
Created October 3, 2021 10:52
Javascript naming utilities like Rails' inflector
// Tools like rails' inflector
const camelizeFromArray = arr =>
arr.map((w, idx) => w.replace(/./, m => (idx === 0 ? m.toLowerCase() : m.toUpperCase()))).join('');
const constizeFromArray = arr => arr.map((w, idx) => w.replace(/./, m => m.toUpperCase())).join('');
const arrayFromKebab = (text, separator = '-') => text.split(separator);
const camelizeFromKebab = (text, separator = '-') => camelizeFromArray(text.split(separator));
@r00t-3xp10it
r00t-3xp10it / Open-Directory.ps1
Last active July 21, 2023 23:41
Prompt user (GUI) for the directory to open with explorer
<#
.SYNOPSIS
Spawn GUI dialog that sellects\open directorys
Author: r00t-3xp10it
Tested Under: Windows 10 (19042) x64 bits
Required Dependencies: none
Optional Dependencies: none
PS cmdlet Dev version: v1.0.1
@akuafif
akuafif / ahref_call_vb_sub.hta
Created September 25, 2021 10:56
[HTA/VBScript] Using a herf to call vb sub
<html>
<head>
<title>HTA a href sub calling</title>
<HTA:APPLICATION
APPLICATIONNAME="HTA a href sub calling"
ID="hta_utility"
border = "thin"
borderStyle = "tool"
caption = "yes"
contextMenu = "yes"