Skip to content

Instantly share code, notes, and snippets.

View SkyN9ne's full-sized avatar
💚

SkyN9ne SkyN9ne

💚
View GitHub Profile
@SkyN9ne
SkyN9ne / clr_via_native.c
Created July 17, 2024 07:49 — forked from xpn/clr_via_native.c
A quick example showing loading CLR via native code
#include "stdafx.h"
int main()
{
ICLRMetaHost *metaHost = NULL;
IEnumUnknown *runtime = NULL;
ICLRRuntimeInfo *runtimeInfo = NULL;
ICLRRuntimeHost *runtimeHost = NULL;
IUnknown *enumRuntime = NULL;
LPWSTR frameworkName = NULL;
@SkyN9ne
SkyN9ne / clr_via_native.c
Last active July 17, 2024 08:56 — forked from dev-2null/clr_via_native.c
2 Simple C and C++ example of showing the loading of am .NET CLR via unmanaged native code
#include "stdafx.h"
int main()
{
ICLRMetaHost *metaHost = NULL;
IEnumUnknown *runtime = NULL;
ICLRRuntimeInfo *runtimeInfo = NULL;
ICLRRuntimeHost *runtimeHost = NULL;
IUnknown *enumRuntime = NULL;
LPWSTR frameworkName = NULL;
@SkyN9ne
SkyN9ne / web-app-internals.js
Created July 20, 2024 20:06
edge:// internal suspicious files
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import "./strings.m.js";
import {
assertNotReached
} from "edge://resources/js/assert.js";
import {
loadTimeData
} from "edge://resources/js/load_time_data.js";
@SkyN9ne
SkyN9ne / test-subshell.bat
Created August 13, 2024 03:44
Detect if you're running in a cmd.exe subshell
@echo off
setlocal EnableDelayedExpansion
:: Dequote path to command processor and this script path
set ScriptPath=%~0
set CmdPath=%COMSPEC:"=%
:: Get command processor filename and filename with extension
for %%c in (!CmdPath!) do (
@SkyN9ne
SkyN9ne / requests.py
Last active October 10, 2024 00:03 — forked from kennethreitz/0_urllib2.py
Python urllib2 vs requests comparison / samples
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
r = requests.get('https://api.github.com', auth=('user', 'pass'))
print r.status_code
print r.headers['content-type']