Skip to content

Instantly share code, notes, and snippets.

View carbolymer's full-sized avatar
🤔
Building castles of abstraction

Mateusz Galazyn carbolymer

🤔
Building castles of abstraction
View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title>Wyszukiwarka - Sale Weselne</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="keywords" content="wyszukiwarka, Sale Weselne, Domy Weselne, Sala Weselna" />
<meta name="description" content="Wyszukaj Swoje miejsce na wesele. Sale weselne dla Ciebie." />
<meta name="google-site-verification" content="Znr7TqYk2Xl1Wq8Y1mwqxZhPrdcMCg6wtFsvK-baSF4" />
<base href="http://otosala/" />
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://spamsoft.pl/quotedev/login.php?login");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIESESSION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, 'http://spamsoft.pl/quotedev/index.php');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/__cookie');
[matgal@tleilax]:~$ quota -s
Disk quotas for user matgal (uid 11038):
Filesystem blocks quota limit grace files quota limit grace
/dev/sda6 4 51200 51200 4 1000 1500
/dev/sdb1 73980 150M 173M 6000* 5000 6000 6days
[matgal@tleilax]:~$ quota -q -s
Disk quotas for user matgal (uid 11038):
File limit reached on /dev/sdb1
[carbolymer@nucleon]:~/.dropbox$ ls -al
razem 3192
drwxr-xr-x 3 carbolymer carbolymer 4096 2010-08-25 21:32 .
drwxr-xr-x 87 carbolymer carbolymer 4096 2010-08-25 21:32 ..
drwxr-xr-x 3 carbolymer carbolymer 4096 2010-08-25 20:48 cache
srwxr-xr-x 1 carbolymer carbolymer 0 2010-08-25 20:57 command_socket
-rw-r--r-- 1 carbolymer carbolymer 3243008 2010-08-25 21:03 dropbox.db
-rw-r--r-- 1 carbolymer carbolymer 5 2010-08-25 20:57 dropbox.pid
-rw-r--r-- 1 carbolymer carbolymer 73 2010-08-25 20:57 host.db
srwxr-xr-x 1 carbolymer carbolymer 0 2010-08-25 20:57 iface_socket
var btnid='app_twoj_id_guzika_btn';
var i = 666;
document.createEvent('MouseEvent').initMouseEvent('mouseup',true,true,window,0, 10, 10, 20, 20, 0, 0, 0, 0, 0, null);
while(i>0) {i--; document.getElementById('btnid').dispatchEvent(m);}
[carbolymer@nucleon]:~/httpd/vhosts/phar$ cat index.php
<?php
phpinfo();
error_reporting(E_ALL);
echo 'BEFORE';
include 'phar:///home/carbolymer/httpd/vhosts/phar/lib/lib.phar/root.php';
include 'phar:///home/carbolymer/httpd/vhosts/phar/lib/lib.phar/main.php';
echo 'AFTER';
?>
Wynik:
Witam Pana serdecznie,
przygotowałam ekskluzywną ofertę powitalną, ale nie wiem czy:
- 2 dowolne, ulubione książki po 9,90 zł
ORAZ
- dodatkowo wybrany prezent powitalny
dla nowych członków Klubu Świat Książki
spotka się z Pana zainteresowaniem?
Aby wybrać teraz swoje 2 dowolne książki i prezent powitalny, proszę kliknąć tutaj:
#!/usr/bin/env php
<?php
$c = array(
'reset' => "\033[00m",
'blue' => "\033[00;34m",
'bblue' => "\033[01;34m",
'green' => "\033[00;32m",
'bgreen' => "\033[01;32m",
'yellow' => "\033[00;33m",
'byellow' => "\033[01;33m",
php > preg_match_all("#(\w+)#",'zażółć gęślą jaźń',$a); var_dump($a);
array(2) {
[0]=>
array(4) {
[0]=>
string(2) "za"
[1]=>
string(1) "g"
[2]=>
string(1) "l"
php > var_dump(preg_replace("#<title>(.*?)|(.*?)|(.*?)|(.*?)</title>#si",'<title>\2 | \4</title>','<title>Subskrypcja licencji|Automapa europa EU|NA 12 MIESIĘCY | prod.livedata.pl</title>'));
string(3070) "<title> | </title><title> | </title><title>S | </title><title> | </title><title>u | </title><title> | </title><title>b | </title><title> | </title><title>s | </title><title> | </title><title>k | </title><title> | </title><title>r | </title><title> | </title><title>y | </title><title> | </title><title>p | </title><title> | </title><title>c | </title><title> | </title><title>j | </title><title> | </title><title>a | </title><title> | </title><title> | </title><title> | </title><title>l | </title><title> | </title><title>i | </title><title> | </title><title>c | </title><title> | </title><title>e | </title><title> | </title><title>n | </title><title> | </title><title>c | </title><title> | </title><title>j | </title><title> | </title><title>i | </title><title> | </title><title>| | </title><title> | </title><titl