Skip to content

Instantly share code, notes, and snippets.

View mizofumi's full-sized avatar
👾

みぞ mizofumi

👾
View GitHub Profile

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@holly
holly / check_drbd.sh
Created June 28, 2015 13:27
keepalived+drbd sample
#!/bin/bash
EXIT_CODE=0
STATUS_FILE=/tmp/drbd.status
STATUS=$(sed -e 's/.* state:\(.*\)$/\1/' $STATUS_FILE)
if [ "${STATUS}" != "MASTER" ]; then
echo "current status is ${STATUS}. skip"
exit
@mizofumi
mizofumi / gist:741516e9dfdd6cd36b15
Created May 9, 2014 15:45
プリキュアのアレ
音源初期化
トラック1
音源初期化
テンポ310
ソソファ#ソッファ#ッソッファ#ッソソーーー
ソソファ#ソッラッシッラッソソーーー
@lacolaco
lacolaco / MainActivity.java
Last active December 21, 2015 06:08
Androidに定時アイコン変更を自動的にさせるプログラム
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
@sasamijp
sasamijp / Penis.java
Created May 3, 2013 11:11
千本チンポ 夜に紛れ 君の膣に 届かないよ
public class Penis {
public static void main (String[] args) {
int n = 0;
while (n <= 1000) {
System.out.println("チンポ");
n++;
}
}
}

すぐれた PHP ライブラリとリソース

Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。

【訳者コメント】 PHP 入門者のかたにはクィックリファレンスとして PHP: The Right Way 、セキュリティに関しては2011年3月に出版された 体系的に学ぶ 安全なWebアプリケーションの作り方 をおすすめします。

Composer

@penguin2716
penguin2716 / mikutter_tategaki.rb
Last active December 14, 2015 23:48
mikutter用縦書きプラグイン
# -*- coding: utf-8 -*-
Plugin.create :tategaki do
def to_tategaki(str)
result = ""
halfs = ('0'..'9').to_a + ('A'..'Z').to_a + ('a'..'z').to_a
fulls = ('0'..'9').to_a + ('A'..'Z').to_a + ('a'..'z').to_a
half_symbols = ' !""#$%&''\'''\'()*+,-./:;<=>?@[\\]^_`{|}~'.split('')
@flour4445
flour4445 / gist:5029019
Last active December 14, 2015 04:29
習作 : LinkedDeque
package net.flourity.lib;
import java.util.*;
public class LinkedDeque<E> extends AbstractQueue<E> implements Deque<E>, Cloneable, java.io.Serializable
{
private static final long serialVersionUID = -5959942865101061013L;
private transient final Node<E> HEADER;
private transient int size = 0;
# -*- coding: utf-8 -*-
require 'twitpic-full'
Plugin.create(:mikutter_twitpic_uploader) do
UserConfig[:twitpic_upimg] = ""
UserConfig[:twitpic_message] = ""
twitpic = TwitPic::Client.new()
twitpic.configure do |conf|
# 気にしたらいけない。
conf.api_key = "9b1d5ca2076eaa7029c83717dd641b47"
@kkosuge
kkosuge / userstream.twitter.com2user.json.md
Created October 8, 2011 13:52
Twitter の User Streams で流れてくるやつ