• Stars
    star
    149
  • Rank 247,108 (Top 5 %)
  • Language
    C#
  • Created over 2 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

.NET executable to use when dealing with privilege escalation on Windows to gain local administrator access

LocalAdminSharp

.NET executable to use when dealing with privilege escalation on Windows to gain local administrator access. This simple tool creates a new user adds it to the local administrator group; if the user exists it will just be added to the admin group. You can also edit the code to add a domain user to the local administrator group editing the variable domain.

Build

Open the solution in Visual Studio (tested only on Visual Studio 2019 Community Edition) and compile the EXE for the desired architecture (x86, x64); in the Release mode the PBD file is removed.

Customize

To create custom user just edit the file Program.cs with the desired username, password, group and domain.

Usage

  • Standalone: .\LocalAdminSharp.exe
  • Chain: use the EXE to be executed from another script/tool (i.e. for privescs)

Analysis

The PBD file is removed when compiling in Release mode and Windows Defender does not detect it as malicious (yet). Obfuscation should be used after the compilation to avoid easy RE using, for example, dnSpy.

More Repositories

1

pastego

Scrape/Parse Pastebin using GO and expression grammar (PEG)
Go
98
star
2

adduser-dll

Simple DLL that add a user to the local Administrators group
C++
75
star
3

VRP-tabu

A Tabu Search pseudo-parallel algorithm for the Vehicle Routing Problem
C++
29
star
4

HTB-writeup

Password-protected writeups of HTB platform (challenges and boxes) https://cesena.github.io/
Shell
21
star
5

docker-sneaky-gophish

Docker for the latest gophish with stealth configuration from sneaky_gophish
Go
16
star
6

conky_dodo

Conky with rings and graphs
Lua
10
star
7

Tools

List of tools
Shell
10
star
8

ALMedia

Firefox Add-on extension
JavaScript
7
star
9

docker-mutillidae

Dockerfile to run OWASP Mutillidae II with NGINX https://github.com/webpwnized/mutillidae
Dockerfile
7
star
10

goflat

Flatten complex JSON structures to a one-dimensional map (JSON key/value).
Go
5
star
11

threadpool

A very fast and lightweight C++14 thread pool library (general purpose)
C++
4
star
12

rsa-rust

Simple and unefficient multithreaded (CPU) implementation of a integer factorization bruteforcer
Rust
3
star
13

docker-nginx-mainline-naxsi

Minimal docker alpine-based for NGINX mainline version with naxsi WAF
Dockerfile
2
star
14

pulumi-k8s-oracle

Provisioning of a Kubernetes cluster on Oracle Cloud FreeTier
Python
2
star
15

arner

Correctly parse AWS ARN strings
Go
2
star
16

AESEncryptor

Windows C/C++ tool to encrypt files content (i.e. shellcodes) using AES CRT
C
2
star
17

tf-calibre-web

Terraform deployment for Calibre Web with ECS Fargate
HCL
1
star
18

saviors

HTML
1
star
19

dotfiles-bspwm

BSPWM & Co. configuration
Shell
1
star
20

MetodiEdAlgoritmiDiOttimizzazionePerIlProblemSolving

TeX rewriting of "Metodi ed algoritmi di ottimizzazione per il problem solving"'s slides course
TeX
1
star
21

numix-cinnamon-transparent

Numix Theme for cinnamon; transparent and compact version
CSS
1
star
22

LPeMC

[Complete]
Java
1
star
23

ASW_Repository

[Complete]
HTML
1
star
24

IAMme-IAMme

IAMme is a tool designed to visualize the connections between entities within an Okta tenant
Go
1
star