Skip to content

Instantly share code, notes, and snippets.

View iGlitch's full-sized avatar
🏠

Glitch iGlitch

🏠
View GitHub Profile
@iGlitch
iGlitch / ctrKeyGen.c
Last active August 29, 2015 14:07
ctrKeyGen
/*
* ctrKeyGen.c
* 8/28/2014
* Used for generating custom file format to be used with xor generator on 3ds
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <wchar.h>
@iGlitch
iGlitch / PicHack.bat
Created December 26, 2014 04:18
File in Picture
@echo off
title PicHack
color 0a
echo Loading...
ping localhost -n 1 >nul
echo ................................................................................
echo ................................................................................
echo ....Create a PicHack folder in your C: drive and click the PicHack.bat file.....
echo .............................Glitch was here....................................
echo ................................................................................
@iGlitch
iGlitch / index.html
Created February 6, 2015 22:22
ROP Loader HTML
<html><head><script>
d=document,r=parent,w=window;
if(r==w){
l='LoadROP.dat',g=decodeURI(w.location.search.substring(1)).split('&');
if(g[0].length>0)l=g[0];
c=g[1];
d.title='Load '+l;
if(c!=undefined&&c.length>0)d.title+='['+c+']';
w.onload=function(){
h=d.body.childNodes[0];
@iGlitch
iGlitch / simplecounter.php
Last active August 29, 2015 14:15
Simple Counter :: 1335 人目のアクセスです Format
<? /*シンプルカウンタ*/
/*count.txtを作成します*/
$fp = @fopen("count.txt","r+") or die("ファイルが開けません");
flock($fp, LOCK_EX);
$count = fgets($fp, 64); //64バイトorEOFまで取得、カウントアップ
$count++;
rewind($fp); //ポインタを先頭に、ロックして書き込み
fputs($fp, $count);
fclose($fp); //ファイルを閉じる
echo $count; //カウンタ表示
@iGlitch
iGlitch / cookie counter.php
Created February 9, 2015 18:13
Counter :: You've been here 32 times eh?
@iGlitch
iGlitch / chat.php
Created February 9, 2015 18:15
Basic PHP Chat
<tt>
<form action=chat.php method=get>
<?php
// ケータイっちゃ
define('MAX', 50); // ログ保存行数
define('CLOG', 'chat.log'); // チャットログ
define('SLOG', 'sanka.log');// 参加者ログ
// 色リスト 上下対応
@iGlitch
iGlitch / Chat2.php
Created February 9, 2015 18:17
Another Basic PHP Chat
<? /* 簡易チャット*/
/*********php4 only***********/
define(MEMBER, "member1.txt"); //メンバーファイル
define(CHATLOG, "chatmsg1.txt");//ログファイル
define(LINE, 10); //表示行数
define(MAX, 100); //ログ保存行数
define(ROM, 1); //見学者表示 0-無し,1-カウントのみ,2-ホスト表示
define(SEPA,":"); //メンバー区切り文字
@iGlitch
iGlitch / updateindex.php
Created February 9, 2015 18:29
Index Updater
<?php
/*
* <?php include("update.php");?>を挿入すると過去3回の履歴を表示します
* テーブル用HTMLは自分で作成してください
* パーミッションを606か666にした、空のファイル(new.txt)を作成してください
* new.txtにログが残ります
* 書き込むときは update.php?put
* トップページにつかってるやつです。
* サイトの更新記録などにお使いください。
* タグは可です。改行は<br>に自動変換されます。
@iGlitch
iGlitch / rssupdate.php
Created February 9, 2015 18:31
UpdateRSS
<?php
/*
IndexUpdaterのRSSバージョンです。
サイトの更新記録などにお使いください。
RSS2.0対応のRSSファイルを更新と同時に作成します。
--enable-mbstringが入ってないとRSSファイルのUTF-8変換が出来ません
設置方法
空のファイル「new.txt」「index.xml」が無ければ作成します
@iGlitch
iGlitch / diary.php
Created February 9, 2015 18:35
Diary
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>にっきちょう</title>
</head>
<body>
<p align=center>
<font color="#332211" size=6><b>にっきちょう</b></font>
<BR><BR>