Skip to content

Instantly share code, notes, and snippets.

View iGlitch's full-sized avatar
🏠

Glitch iGlitch

🏠
View GitHub Profile
@iGlitch
iGlitch / 5-23.java
Created July 31, 2014 01:40
Write a program that prompts the user to enter three points of a triangle and displays the angles in degrees. Round the value to keep two digits after the decimal point.
import java.awt.Point;
import java.io.IOException;
public class Angles {
public static void main(String[] args) throws IOException {
//1 1 6.5 1 6.5 2.5
double[] numbers = new double[0];
while(numbers.length != 6) try {
System.out.print("Enter three points: ");
@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 / Spambot.vbs
Created December 28, 2014 23:31
Skype Spambot
set shell = createobject ("wscript.shell")
'extention_type=".vbs" (Visual Basic Script)
'msgbox "Copyright 2014 Glitch."
strtext = inputbox("Enter the message you want to send in the box below. No longer than 100 characters.")
strtimes = inputbox("Now, enter the ammount of messages you want to send in the box below. Do not go above 500.")
strtdelay = inputbox("How much time should the bot wait in between messages? Enter your value in the box below, in seconds. Decimal points ARE allowed. No less than 0.1.")
if not isnumeric(strtimes) then
wscript.quit
end if
msgbox "Make sure Skype is started up. Once you hit ok, you will have 5 seconds to get to the inputbox on Skype."
@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 / viewsource.php
Created February 9, 2015 18:27
Source Viewer
<?
/* source view==PHP4 Only!== */
/* ->source.php?target.php */
if(phpversion()>"4.1.0") $QUERY_STRING = $_SERVER['QUERY_STRING'];
if($QUERY_STRING){
if (file_exists($QUERY_STRING) && ereg("^[^\./]*(\.php3?|\.inc)$",$QUERY_STRING)) {
show_source($QUERY_STRING);
} else {
$now = gmdate("d(D) h:i a",time()+60*60*9);
$host = gethostbyaddr(getenv("REMOTE_ADDR"));