Skip to content

Instantly share code, notes, and snippets.

Vinicius Daniel Antunes Oliveira viniciusdaniel

Block or report user

Report or block viniciusdaniel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@viniciusdaniel
viniciusdaniel / GoogleHackMasterList.txt
Created Dec 4, 2019 — forked from xiaoxiaoleo/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
View GoogleHackMasterList.txt
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
@viniciusdaniel
viniciusdaniel / bcm57765or57785fix
Created Oct 26, 2019 — forked from samgooi4189/bcm57765or57785fix
Fixing Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader
View bcm57765or57785fix
Follow the WORKAROUND:
1. Add a comand to /etc/rc.local, add the following line above "exit 0":
setpci -s 00:1c.2 0x50.B=0x41
2. Add the same comand to /etc/apm/resume.d/21aspm (which does not exist yet):
setpci -s 00:1c.2 0x50.B=0x41
3. Add the following to /etc/modprobe.d/sdhci.conf:
options sdhci debug_quirks2=4
4. Re-generate initrd:
sudo update-initramfs -u -k all
5. Reboot or reload sdhci module:
@viniciusdaniel
viniciusdaniel / proxy_start.sh
Created Apr 12, 2019
proxy http over proxy socks
View proxy_start.sh
#!/bin/bash
logFlogPath=/tmp/polipo.log;
cachePath=/tmp/polipo_cache;
socksPort=8123;
httpPort=8124;
proxyHost=127.0.0.1;
gatewayServer=10.0.0.1;
# Catch ctrl + c and close all stuff
View bash_colors.md

Bash tips: Colors and formatting (ANSI/VT100 Control sequences)

The ANSI/VT100 terminals and terminal emulators are not just able to display black and white text ; they can display colors and formatted texts thanks to escape sequences. Those sequences are composed of the Escape character (often represented by “^[” or “<Esc>”) followed by some other characters: “<Esc>[FormatCodem”.

In Bash, the <Esc> character can be obtained with the following syntaxes:

  • `\e`
@viniciusdaniel
viniciusdaniel / webserver.pl
Created Nov 8, 2018
Small webserver just responding HTTP 200
View webserver.pl
#!/usr/bin/perl
use strict;
use IO::Socket;
my $server = IO::Socket::INET->new(
LocalPort => 80,
Type => SOCK_STREAM,
Reuse => 1,
Listen => 20
@viniciusdaniel
viniciusdaniel / scp_tar.sh
Created Oct 28, 2018
Best way to copy file across SSH
View scp_tar.sh
$ tar czf - <files> | ssh user@host "cd /wherever && tar xvzf -"
@viniciusdaniel
viniciusdaniel / fileBrowserHandler.htm
Created Oct 22, 2018 — forked from greenido/fileBrowserHandler.htm
Simple test to FileSystem APIs (HTML5)
View fileBrowserHandler.htm
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>Chrome File API tester</title>
<script>
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
@viniciusdaniel
viniciusdaniel / whiskermenu-1.rc
Created Jun 11, 2018
Gist config for whisker menu show recent access for default
View whiskermenu-1.rc
favorites=
recent=jetbrains-phpstorm.desktop,google-chrome.desktop,filezilla.desktop,sublime_text.desktop
button-title=Applications Menu
button-icon=xubuntu-logo-menu
button-single-row=false
show-button-title=false
show-button-icon=true
launcher-show-name=true
launcher-show-description=false
item-icon-size=1
@viniciusdaniel
viniciusdaniel / ufw.md
Last active Jun 4, 2018
How To Setup a Firewall with UFW on an Ubuntu and Debian Cloud Server
View ufw.md

Original source: https://www.digitalocean.com/community/tutorials/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server

Introduction

One of the first lines of defense in securing your cloud server is a functioning firewall. In the past, this was often done through complicated and arcane utilities. There is a lot of functionality built into these utilities, iptables being the most popular nowadays, but they require a decent effort on behalf of the user to learn and understand them. Firewall rules are not something you want yourself second-guessing.

To this end, UFW is a considerably easier-to-use alternative.

You can’t perform that action at this time.