Skip to content

Instantly share code, notes, and snippets.

View akkuman's full-sized avatar
💭
I may be slow to respond.

akkuman

💭
I may be slow to respond.
View GitHub Profile
@WincerChan
WincerChan / hitokoto.js
Created July 20, 2017 14:28
js脚本模拟一言API
var rand1 = Math.floor(Math.random()*410);quotes = new Array
quotes[0]='若隐若现才是艺术! ——「问题儿童来自异世界」'
quotes[1]='下一次重逢,将是何年何月?天空必将见证。 ——「SOLA」'
quotes[2]='如果你都不知道自己想去哪里,那去哪里都是一样的。 ——「柴郡猫」'
quotes[3]='一定没有问题的! ——「魔卡少女樱」'
quotes[4]='这是眼泪吗?原来眼泪是这么的温暖,我一直以为,哀伤的东西都是冰冷的。 ——「风色幻想」'
quotes[5]='桑丘,让他们管我叫疯子吧,我还疯得不够,所以得不到他们的赞许。 ——「堂吉诃德」'
quotes[6]='美好的人眼裡映出的世界也是美好的。 ——「ARIA」'
quotes[7]='如果不能忠于自己的心,胜负又有什么价值呢? ——「塔希里亚故事集」'
quotes[8]='天空本是一种风景,可是遇见你之后,它变成了一种心情。 ——「九ちのセカィ」'
@fly2xiang
fly2xiang / width0.php
Created November 10, 2016 07:08
将任意内容转换为零宽字符,“隐藏”内容
<?php
/**
* http://ucren.com/blog/archives/549
* 利用零宽字符“隐藏”信息
* 每个字符都有一个唯一的编码,将编码以 2 进制表示得到 01.. 的字串,把 1 替换成 U+200C,把 0 替换成 U+200D 就得到一个全零宽空白的字符串
* 在 unicode 里,至少有 U+200B, U+200C, U+200D 和 U+FEFF 四个零宽字符
*/
@ashishtiwari1993
ashishtiwari1993 / es_exception_challenges.md
Last active March 26, 2021 01:22
Below are some challenges & exceptions faced while setting up Elasticsearch. I just shared my experience and learning. Please correct me, If you guys feel somewhere i got wrong OR You can contribute if you have any experiences . Will keep update this gist.

(by @_ashish_tiwari)


Elasticsearch specification:

Version : 6.2
Heap size : 30 GB
core : 24
Memory : 128 GB
Client : PHP - 6.0

@tokyoneon
tokyoneon / agent.sh
Created March 18, 2020 23:25
MyCC - turn MyBB forums into C&C servers
#!/bin/bash
# https://null-byte.com/turn-forums-into-c-c-servers-0196708/
while true; do
forumUser="tokyoneon";
username="tokyoneon@email.com";
password="treHGFd76547^%$";
cookies='/tmp/forum_cookies';
function urlencode ()
@sbp
sbp / project.bash
Created December 20, 2011 17:05
Mirror a user's gists
#!/bin/sh
GIST_USER=sbp
function usage() {
echo Usage: $0 [command], where command is one of:
echo update - Gets any new gists for user
echo pull - Keep existing gists synced with server
echo sync - Do an update then a pull
}
@reinsteam
reinsteam / enum_heaps.c
Created August 28, 2015 11:51
Sample code of heap enumeration without using Tool Help functions <tlhelp32.h>
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
#pragma warning (push)
/* 4820: '<struct-name>' : 'n' bytes padding added after data member '<member-name>'*/
# pragma warning (disable : 4820)
# include <windows.h>
# include <stdio.h>
@WincerChan
WincerChan / get_link.py
Last active October 22, 2021 05:53
获得QQ音乐直链
@JusticeRage
JusticeRage / go_tmilk.py
Created October 15, 2021 17:22
Go Type Milking - IDA script to extract type information from Go binaries
"""
got_tmilk.py - Go Type Milking
Written by Ivan Kwiatkowski @ Kaspersky GReAT
Shared under the terms of the GPLv3 license
"""
C_HEADER = """
enum golang_kind : __int8
{
INVALID = 0x0,
@yarjor
yarjor / rop_notes.md
Last active March 15, 2022 02:10
[ROP Notes] #notes #rop #dep #return #exploit #binary

Some notes I wrote to myself concerning making of ROP-chains:

  • Creating a shellcode / pseudo-shellcode before starting to build the ROP-chain is useful and will be a reference of what you need, especially when trying to do something special in the ROP (eg. not execve ;) )
Quick profit with ROP

This is a quick trick to build a ropchain :)

  1. First, you need to find certain gadgets for needed operations:

    a. pop gadget for each of the registers ebx, ecx, edx (for setting them up as arguments for syscall)

b. xor and inc gadgets for eax (for setting up the syscall number)

@mguerreiro
mguerreiro / yara_performance_guidelines.md
Created October 10, 2016 09:46 — forked from Neo23x0/yara_performance_guidelines.md
YARA Performance Guidelines

YARA Performance Guidelines

When creating your rules for YARA keep in mind the following guidelines in order to get the best performance from them. This guide is based on ideas and recommendations by Victor M. Alvarez and WXS.

  • Revision 1.1, February 2016, applies to all YARA version 3.3+

Global Rules

Global rules are evaluated first. Only if they are satisfied non-global rules are evaluated. This may be useful if all samples exhibit the same characteristics. Use them combined with the "private" statement to suppress a match notification on the global rules.