Thursday, December 20, 2007

Карловска луканка

На 4кг. смляно свинско (може и конско+пуешко) месо се прибавят 2 кг. говеждо смляно месо и 1 кг. сланина на дребни кубчета. Към всеки килограм от сместа се прибавя 1 кг. сол, 1/2 лъжица захар, чубрица, черен пипер и кимион на вкус. Сместа се омесва добре като от време на време се налива по 1 л. вода. Оставя се 1 нощ и на следващия ден се напълват с нея говежди или свински черва, като се усукват през 25-30 см. Луканките се завързват в двата края със здрав конец, надупчват се с игла, за да излезе въздуха и се окачват на сухо и проветриво място. През 2-3 дена се отъняват и оформят с точилка. След като изсъхнат добре се увиват отделно в хартия, нареждат се в съндъче и се посипват с дървена пепел.


Рецептата на Данчо

Monday, October 29, 2007

SB450 HDA Audio under Linux

I had some troubles to get any sound out of my Toshiba notebook with the recent kernels 2.6.21 and 2.6.22.  My sound card is


00:14.2 Audio device: ATI Technologies Inc SB450 HDA Audio (rev 01)


However it is working with 2.6.23-rc4 vanilla kernel. I don’t know whether it is a problem in alsa or in the kernel itself but after several hours of googling I finally got it playing.


Firstly you have to put in  /etc/modprobe.d/aliases or whatever module aliases file you have the following


alias snd-card-0 snd-hda-intel


and secondly in /etc/modprobe.d/alsa-base this one


options snd-hda-intel model=auto enable=1 index=0


and voila! Adjust your sound levels with alsamixer -)

Friday, August 24, 2007

Макарони на фурна

Продукти за една тава:

  • 1 пакет макарони

  • 800мл прясно мляко

  • 1 ч. ч. кристална захар

  • 2 пак. ванилия

  • 4 яйца


Макароните се сваряват в подсолена вода с 4-5 с.л. олио. След това се слагат в намазана с олио тава заедно със сместа от яйцата, захарта, млякото и ванилията. Разбъркват се леко за да се разпределят развномерно в тавата и се слагат да се пекат във фурната на 200 градуса. Сервират се по желание със сирене.

Tuesday, July 10, 2007

Creating an Ad-Hoc network

This is a short reference how to create an Ad-hoc network in Linux using the CLI. More detailed article can be found in this Ubuntu guide.


1. Put the wireless interface in ad-hoc mode


iwconfig eth1 mode ad-hoc


2. Set the channel/frequency that you want to use


iwconfig eth1 channel 11


3. Add the name (ssid) for the network you want to create/join. Use single quotes if there is a space in the name.


iwconfig eth1 essid ‘name’


4. Add a WEP encryption key


iwconfig eth1 key ’s:mykey’


5. Bring the interface back up


ifconfig eth1 up


With Atheros based cards you have to take the VAP down in order to create the interface in ad-hoc mode. There are two ways to do this


# rmmod ath_pci


# modprobe ath_pci autocreate=adhoc


# wlanconfig ath0 destroy


# wlanconfig ath create wlandev wifi0 wlanmode adhoc


With cards using ndiswrapper this should work as follows:


# rmmod ndiswrapper


# modprobe ndiswrapper


The example above shows how to setup the network with WEP encryption. If you want to use WPA you have to install wpa_supplicant and configure wpa_supplicant.conf like this:


network={
ssid=”myadhoc”
mode=1
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=TKIP
psk=”verysecretpass”
}


Then start wpa_supplicant with


# wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth1 -Dwext -Bw


Of course you have to put the correct interface and driver name for this to work.

Wednesday, July 4, 2007

Палачинки (по-добрите)

Продукти за 2-3 порции:



  • 3 яйца и 3 жълтъка

  • 1 чаша брашно

  • 1 чаша мляко

  • 1 с.л. захар

  • 1 с.л. олио (или масло)

  • 1 ч.л. сол

  • ванилия


Wednesday, June 13, 2007

Mysterious triangles

This riggle was originaly published in the Fortune magazine. At the picture shown below there are two trinagles, the second one is formed by rearanging the pieces of the first one. Yet there is a strange gap in the second triangle. Has area vanished? Is the conservation of matter bogus?

Thursday, April 12, 2007

Free Internet access for LAN users

Many Internet Service Providers which offer internet access via local area networks (LAN) have very basic user authentication, they distinguish their users only on MAC/IP address pair basis. Of course many use more complex techniques based on PPPoE, PPTP, VLAN, port security; this article does not apply to them.Since the MAC address of the network interface card (NIC) can be easily changed this could lead to account hijacking in no time. The only condition is thay you have to know the MAC and IP addresses of an existing computer in your network.


Fortunately the Ethernet protocol which is used in LAN makes both addresses public and anyone whithin the same ethernet segment can see them. That’s why I wrote a script which automates the gathering process and writes all the MAC/IP pairs to a text file. This file is used as a database for another script which autmatically sets one of the pairs to your NIC.


Usage:



  • Download http://systemv.eu/fisp-0.3.tar.gz

  • Uncompress it using # tar xvzf fisp-0.3.tar.gz; cd fisp

  • Edit the file scan.pl and put in the @networks list the IP networks of your ISP (you can easily see them with tcpdump). In the $db variable set the filename where the gathered information will be stored or you can leave it by default.

  • Execute scan.pl (It is recommended to put it in a cron job or startup script), it will find the computers in the specified networks which are online.

  • Now execute the assign.pl script. It will get the first entry (or the first random one if used with -r option) and set your NIC’s MAC and IP addresses and the gateway. Then it will check if internet connection is present and if this fails it will go to the next entry in the db file and repeat the process. If you use the -c option then the script will exit if it finds existing internet connection.


Note: The script assumes that the gateway address ends with xxx.xxx.xxx.1 of the same network, if in your case this is different you have to change it in the source.


And that’s it. Enjoy )

Friday, April 6, 2007

Cracking WEP in less than 60 seconds

Erik Tews, Andrei Pychkine and Ralf-Philipp Weinmann from the technical university Darmstadt in Germany found even better way to crack WEP. Quoting:


“We were able to extend Klein’s attack and optimize it for usage against WEP. Using our version, it is possible to recover a 104 bit WEP key with probability 50% using just 40,000 captured packets. For 60,000 available data packets, the success probability is about 80% and for 85,000 data packets about 95%. Using active techniques like deauth and ARP re-injection, 40,000 packets can be captured in less than one minute under good condition. The actual computation takes about 3 seconds and 3 MB main memory on a Pentium-M 1.7 GHz and can additionally be optimized for devices with slower CPUs. The same attack can be used for 40 bit keys too with an even higher success probability.


More information and a proof-of-concept tool is available at http://www.cdc.informatik.tu-darmstadt.de/aircrack-ptw/

Saturday, March 31, 2007

Крем карамел

Продукти:



  • 6 яйца

  • 1л. мляко

  • 1ч. захар


Необходими са 6-8 бр. от познатите метални чашки или иенски купички.


В купичките се слага по 1л. захар и се поставят на нагорещен котлон докато захарта не започне да се карамелизира. След това се отстраняват и в тях се сипва сместа приготвена от яйцата млякото и останалата захар. Слагат се в тава, в която се сипва вода, така че да покрие съдовете до половината (водна баня). Пекат се във фурна на 150гр. в продължение на 1 час.



WEP cracking w/ Atheros cards

The following article describes how to crack encrypted wireless networks using WEP protocol in Ubuntu with Atheros based cards.


First install the needed software - aircrack-ng cracking suite and madwifi-tools from debian package which provides the wlanconfig tool which otherwise is not included in ubuntu.


apt-get install aircrack-ng
wget http://ftp.de.debian.org/debian/pool/contrib/m/
madwifi-tools/madwifi-tools_0.9.2+dfsg-1_i386.deb
dpkg -i madwifi-tools_0.9.2+dfsg-1_i386.deb


Then we should bring any virtual access points (VAPs) down in order to create an interface in monitor mode.


ifconfig ath0 down (Take the VAP down)


wlanconfig ath0 destroy (Destroy the VAP)


wlanconfig ath0 create wlandev wifi0 wlanmode monitor (pretty self-explanatory)


Then find on which channel the targeted network is operating. You can do this with running airodump-ng without any arguments.
Now we are ready to capture initialization vectors (IVs) which are required to recover the WEP key.


airodump-ng -c -w


(You need to capture about 250.000 IVs to crack 40-bit WEP, and more than 800.000 IVs to crack a 104-bit key)


aircrack-ng


Enjoy )

Sunday, March 18, 2007

Супа с пилешки крилца

Продукти:



  • 4 пилешки крилца

  • 2-3 моркова

  • глава кромид лук

  • 1 кубче пилешки бульон

  • 0.5 супена лъжица сол

  • фиде на око

  • 1 яйце

  • 3 с.л. кис. мляко


Слагат се пилешките крилца в тенджера с около 1.5 литра кипнала и подсолена вода. След като се сварят се изваждат и се разкъсват на парченца. Прибавят се нарязаните моркови и лука и когато се сварят се прибавя бульона. Накрая се слага фидето и се разбърква докато омекне. Слага се застройка по избор. Какрая към супата може да се прибави черен пипер и магданоз.

Традиционен бял хляб

Брейй това машината за хляб била стахотна работа. След като един директор на хлебозавод се изпусна да каже какви ‘химични елементи’ използват за направата на хляба смятам да мина изцяло на домашно производство ) )


Ето класическата рецепта:



  • 1 чашa вода

  • 3 ч. брашно

  • 2 с.л. захар

  • 1.5 ч.л. сол

  • 1.75 ч.л. мая

  • 2 с.л. олио

  • 1 ч.л. оцет


По желание могат да се добавят макови семена и/или сусам.



Thursday, March 15, 2007

Windows CE pppd

Here are some instructions how to connect a Windows CE portable to a Linux box with pppd.


Windows CE:


Create a modem connection.


Connections -> Direct Connections -> Settings -> Communication -> Identification -> cebox


Linux:


Create the following files in /etc/ppp


cebox.sh:


#!/bin/bash


pppd call cebox


cebox.chat:


Timeout 3600


“CLIENT” “CLIENT\c”


” ” “SERVER\c”


peers/cebox:


/dev/ttyS1 19200 crtscts


connect ‘/usr/sbin/chat -v -t cebox.chat’


noauth


local


192.168.55.101:192.168.55.100


Don’t change the IP addresses since Windows CE seems to connect only if such network is specified. Make /etc/ppp/cebox.sh executable and start it. Then start the modem connection from the Win CE.

Gentoo Linux Mini HOWTO

This a short reference guide for installing Gentoo “the classic way”.


fdisk /dev/hda


mkswap /dev/hdaX
mkfs.ex3 /dev/hdaY


swapon /dev/hdaX
mount /dev/hdaY /mnt/gentoo


cd /mnt/gentoo
wget http://mirrors.ludost.net/gentoo/releases/
x86/current/stages/stage3-i686-2006.1.tar.bz2
tar xvjpf stage3-i686-2006.1.tar.bz2


mount -o bind /proc /mnt/gentoo/proc


cp /etc/resolv.conf /mnt/gentoo/etc/


chroot /mnt/gentoo /bin/bash


env-update
source /etc/profile


emerge –sync


nano -w /etc/make.conf


ln -sf /usr/share/zoneinfo/… /etc/localtime


emerge -sf sys-kernel/gentoo-sources
cd /usr/src/linux
make menuconfig
make bzImage modules modules_instal
cp arch/i386/boot/bzImage /boot


ufed


emerge metalog
emerge dcron


rc-update add medalog default
rc-update add dcron default


passwd


nano -w /etc/fstab


grub


etc-update


exit
cd /
umount /mnt/gentoo/proc
umount /mnt/gentoo


reboot


If you don’t know what some of the commands do or how to use them check out the original Gentoo Linux x86 Quick Install Guide and Gentoo Handbook.