Skip to content

Instantly share code, notes, and snippets.

Avatar

Brian Mayo b1tdust

View GitHub Profile
@b1tdust
b1tdust / main.py
Created Sep 28, 2018
Google Translate Always on top
View main.py
import gi
"""
Small script to use the mobile version of Google Translate with GTK3 and WebKit2 and Python 3.
It can get the input fromo the clipboard and paste it into the web app.
Copyleft: Brian Mayo
"""
gi.require_version('Gtk', '3.0')
@b1tdust
b1tdust / logger.js
Created Feb 7, 2018
NodeJS simple colored logger
View logger.js
const colors = require('colors/safe') // yarn add colors
colors.setTheme({
info: 'green',
warn: 'yellow',
debug: 'grey',
error: 'red'
})
if (!process.env.DEBUG) {
@b1tdust
b1tdust / pug-react.js
Created Dec 14, 2017
pug-loader in react component
View pug-react.js
/* eslint import/no-webpack-loader-syntax: off */
import React, { Component } from 'react'
import template from '!pug-loader!./template.pug'
class Test extends Component {
render() {
const html = { __html: template() } // template() returns a html string
return (
<div dangerouslySetInnerHTML={html} />
@b1tdust
b1tdust / digiduck00.ino
Last active Jan 18, 2021
stole windows credentials with digispark and mimikatz
View digiduck00.ino
/*
* author: brian mayo
* objetive: dump windows credentials using mimikatz
* note: this script is for educational purposes only
* usefull links:
* https://github.com/PowerShellMafia/PowerSploit#invoke-mimikatz
* http://digistump.com/wiki/digispark/tutorials/digikeyboard
* https://ducktoolkit.com/payload/?os_type=windows
*/
@b1tdust
b1tdust / microsoft_api_code.js
Created Aug 4, 2016
Testing Microsoft API Code for cloud compiling
View microsoft_api_code.js
const code =
`using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main()
{
Console.WriteLine("HOLA!");