Skip to content

Instantly share code, notes, and snippets.

View avraampiperidis's full-sized avatar

Avraam Piperidis avraampiperidis

View GitHub Profile
@avraampiperidis
avraampiperidis / gist:5807355
Created June 18, 2013 17:14
im trying to make a general purpose simple php network script with network and system functions i tryed to put as much as i could. i want to put telnet and netcat and an auto scan and connect function but i have some hard time in coding.
<?php
//php network script
//works only on cli
//by zeron abraham piperidis3@yahoo.gr (any response would be appreciate)
/*im trying to make a general purpose simple php network script with network and system functions
i tryed to put as much as i could.
i want to put telnet and netcat and an auto scan and connect function but i have some hard time in coding.*/
// curl extension must enable!!!,for ubuntu-mint... apt-get install php5-curl
@avraampiperidis
avraampiperidis / gist:5808529
Created June 18, 2013 19:35
a simple php command line interface calculator script
<?php
//simple calculator script
//runs only on cli
echo '|------welcome to a simply calculator script----|' ."\n";
menu:
echo "|----Menu----| ". "\n";
echo "| 1. + function ". "\n";
@avraampiperidis
avraampiperidis / gist:5808599
Created June 18, 2013 19:42
php cli script. matrix illusion
<?php
matrix:
$table = array('| |');
$numbers = array(0,1,00,01,10,11,111,000,' ');
shuffle($table);
shuffle($numbers);
foreach ($numbers as $numbers) {
set_time_limit(0);
usleep(900); // change this to increase or decrease speed
@avraampiperidis
avraampiperidis / gist:5808580
Created June 18, 2013 19:39
a simple OOP php calculator script. runs only on cli!
<?php
echo '|------welcome to a function based calculator script----|' ."\n";
menu:
class calc {
function printf()
{
echo "|----Menu----| ". "\n";
@avraampiperidis
avraampiperidis / gist:5808773
Created June 18, 2013 20:03
php encrypt script based on string time character replace .runs on cli
<?php
/*
this is a simple encrypt script based on string character replace,
it also replace some characters based on seconds from time date('U') command,
so the output will be almost different every time the program runs
And its working only from command line interface
*/
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING)); //disabled error reporting
@avraampiperidis
avraampiperidis / md5.php
Created June 18, 2013 20:05
a php cli md5 encoder!
<?php
$key = 'zeron';
echo ' |--------welcome to Protectsoft---------| '."\n";
fwrite(STDOUT, "enter your keyword: ");
$passwd = trim(fgets(STDIN));
$encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $passwd, MCRYPT_MODE_CBC, md5(md5($key))));
$decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($encrypted), MCRYPT_MODE_CBC, md5(md5($key))), "\0");
echo 'Encrypted:' . "\n";
var_dump($encrypted);
@avraampiperidis
avraampiperidis / base64.php
Created June 18, 2013 20:08
a base64 encode cli script
<?php
$who = exec('whoami');
echo ' |--------welcome to Protectsoft---------|'."$who"."\n";
fwrite(STDOUT, "enter your passphrase: "); //STDOUT basic input write method
$input = trim(fgets(STDIN)); //trim removes string spaces at beggining andend,fgets get first line to read,STDIN read input from STDOUT
base64_encode($input); //basic encode function
$str = $input;
base64_decode($str);
echo 'your encoded passphrase is: ',base64_encode($input)."\n";
echo ' |--------Protectron Protectsoft---------|';
@avraampiperidis
avraampiperidis / DoS.php
Created June 18, 2013 20:11
a simple DoS php script.usefull only in lan.
<?php
$ip = "46.176.3.162"; // Fetch IP via GET
$socket = socket_create(AF_INET,SOCK_DGRAM,SOL_UDP); // Create sockets
if(!$socket) {
die("Unable to create sockets.");
} // Unable to create sockets
$data = "";
@avraampiperidis
avraampiperidis / leet.pl
Created June 18, 2013 20:17
a basic 1337 encoder
#!/usr/bin/perl
print "\n(c) zeron \n";
print "1337 encoder";
%enc = ('a','@','b','%','c','[','d','*','e','$','f','PH','g','9','h','H','i','
L','l','j','_|','k','k','l','|_','n','|\|','o','0','r','|2','s','@','t','+','v','V','w','VV','x','<>','z','2','A','4','B','B','C','[','D','|}','E','3','F','P','G','6','H','|-|','I','|','J','_|','K','
|<','L','|_','M','|v|','N','n','O','O','P','r','Q','q','R','|2','S','$','T','7','U','U','V','u','W','e','X','<>','Y','%','Z','2','1','l','2','z','3','3','4','@','5','$','6','G','7','t','8','b','9','g');
print "\n Enter your phrase:";
@avraampiperidis
avraampiperidis / phpshell.php
Created June 18, 2013 20:15
an alternate shell thru php. it can be combined with html
<?php
//by zeron
menu:
$out = fwrite(STDOUT,"zeron@box~/$:");
$out = trim(fgets(STDIN));
echo passthru($out);
if ($out == 'exit') {
exit;
}
goto menu