https is not so safe

Wireshark provides a cool feature: decrypt ssl (https) traffic. But how is that possible? Isn’t https supposed to be private, unbreakable, provide protection against 3rd parties listening in?
Yes, and it does… most of the time. In order to decrypt the data, you need the server’s private key. Which you don’t have usually, but others might get their hands on. And this is the problem.
If someone logs your traffic (maybe for years), and later acquires the private keys, then they can decrypt all your data sent over ssl.
This can be done only if the key exchange is RSA, because this uses the server’s “constant” private key to encrypt the session key.
If https uses Diffie–Hellman key exchange, then every session key is generated and exchanged securely. Meaning the key is generated from and encrypted with random data, and not stored anywhere. This key exchange method was designed to exchange keys over insecure, public channels. So it is not possible for 3rd party to get the key, and the information used to generate and exchange the keys are temporary, and destroyed on both sides after the key exchange is over.

Diffie–Hellman key exchange is part of many Chipper Suit, but unfortunately many sites (like google, facebook) does not include, support this. As if they do not really want for you to have complete privacy…
https channel can only be established if both sides support (at least one) same chipper.

To see and edit what chippers your Firefox browser supports open ‘about:config‘, and search for ‘ssl’.

Related Articles:
http://www.netresec.com/?page=Blog&month=2011-01&post=Facebook-SSL-and-Network-Forensics

USB Mouse Raw Data

A Fujitsu-Siemens Wireless egeremhez nincs 64 bites windows driver. Az alap dolgok persze e nélkül is mennek, de van rajta néhány gomb, amit az OS nem ismer fel.

Probáltam libusb-win32-vel kinyerni az adatokat, ami csak többé kevésbé volt sikeres. A filter funkciót használtam.
Egyik egérnél csak a forgalom egy részét kapta el, elég sok csomag elkerülte. A Fujitsu-Siemens egérnél ugyan elkapott minden csomagot, de ezzel együtt le is választotta az op-rendszerről (a mutató mozgásra és kattintásra nem reagált).

Az egyik fórumon olvastam a GetRawInputData Win API függvényt. Eltartott egy ideig, de sikerült beüzemelni, viszont ez meg csak azokat az adatokat továbbítja, amit a windows egyébként is kezel.

Nem valószínű hogy most nekiállok windows drivert írni az egeremhez, de lehet hogy majd egyszer…

Oracle VBox problems

Virtualbox is a great tool, BUT
VirtualBox 4.0.x hangs my host OS for a minute or so every time I start (or resume) a VM. 3.x.x worked fine.
The host is a Windows 2003 x64 Server (64 bit AMD host). One of the guest OS is 64 bit Ubuntu 10.04 LTS Desktop. This only happens when nested paging is enabled.

I tried to post a report about this on the virtualbox forum, but I had some difficulties with the registration page. I kept getting the ‘The field “VBox Version” must be completed.’ error message when I type in the correct ‘4.0.8’. When I try 3.2.12, or something else I get an additional line: ‘Enter the Current VirtualBox Version number in the form 9.9.9 (See our website for the latest Product Release Announcement)’ besides ‘The field “VBox Version” must be completed.’ It turns out the missing field was the license type. I guess you could call it Version, but why would you?

Windows x64 Memeory management, System Cache, Task Manager

Limiting the System Cache is sometimes beneficial! Specially on 64 bit version of Windows.

I had some problem after installing 8GB additional system RAM under Windown 2003 x64 server and disabling the page file / setting it to 1GB from 4GB. It seemd to use all the RAM for system cache (file cache) and displayed ‘virtual memory too low’ warnings once or twice. I mean I added 8GB RAM and decreased the paging file by 4GB (3GB) and I never had problems before so I should have been fine. +8 -3 = low memory? Somehow the math doesn’t add up.

I found a lot of articles describing the same problem I had. (windows uses half of the memory for file caching)
Then I tried tweaking some settings.

Registry settings: Session Manager\Memory Management\
LargeSystemCache
http://technet.microsoft.com/en-us/library/cc784562(WS.10).aspx

I’m not sure if the System Cache info in Task manager is accurate or what does it exactly count. SysInternals Process Explorer displays differente value (equal to Performance monitor Memory\Cache Bytes counter) for System Cache.

To reset the cache size use SysInternals CacheSet.
http://technet.microsoft.com/en-us/sysinternals/bb897561

or Microsoft Windows Dynamic Cache Service
http://www.studentguru.gr/blogs/acardaris/archive/2010/06/27/microsoft-windows-dynamic-cache-service.aspx

More info about memory management and system cache:
High System Cache usage with high Disk Read I/O on Windows x64
https://www-304.ibm.com/support/docview.wss?uid=swg21318658

Too Much Cache
http://blogs.msdn.com/b/ntdebugging/archive/2007/11/27/too-much-cache.aspx

You may experience a decrease in overall system performance when you are copying files that are larger than approximately 500 MB in Windows Server 2003 SP1 or in Windows Server 2003 SP2
http://support.microsoft.com/default.aspx?scid=kb;EN-US;920739

Things to consider before you enable System cache mode in Windows XP
http://support.microsoft.com/kb/895932

There are a lot of other good articles about Windows Memory Management, Performance Monitoring and I cannot list them all.
Pushing the Limits of Windows: Physical Memory

http://blogs.technet.com/b/markrussinovich/archive/2008/07/21/3092070.aspx

Tray Timer

Összeraktam egy kis időzítő programot ma. Ez nem ébresztő óra, arra ott van az outlook, lightning (thunderbird), vagy akár a google online naptára. (Meg még vagy ezer maásik program).
Ez arra jó, ha gyorsan be akarjuk állítani, hogy pl. 10 perc mulva jelezzen (hogy megfőtt a kemény tojás).
Gyorsan és egyszerűen egérrel, vagy billentyűzettel be tudjuk állítani, lehet hang jelzéssel, vagy a nélkül, egyszerre akár több (korlátlan) időzítőt is elindíthatunk, lehet utána törölni a feleslegeseket.

Még kicsit félkész, de már jól használható.

FSTrayTimer_bin_20110201
FSTrayTimer_src_20110201

Fotók rendezése

Pár hónapja foglalkoztam a fényképek katalogizálásával, illetve a GPS koordináták kiolvasásával (GeoTagging). A célom egy webes fénykép adatbázis létrehozása volt.
Mint megtudtam a GPS adatok is a jpg EXIF szekciójába mentődnek sok más hasznos információ mellett, amit a fényképező automatikusan kitölt. Szerencsére ennke kezelésére a php-ben beépített függvények vannak.
Már jó ideje az IrfanView programot használom fényképek megtekintésére és egyszerűbb szerkesztésekre. Ez is támogatja az EXIF és az IPTC adatok megjelenítését. A katalogizáláshoz viszont kipróbáltam az XnView-t, és hasznosnak találtam.
A kép rendező programok után keresve találtam rá ezekre a bejegyzésekre:
Thozoo naplója – IPTC adatok
Labeling Photos with IPTC

Az Apple iPhoto arcfelismerÅ‘ / rendszerezÅ‘ funkciója is megtetszett, kár hogy csak Mac OS-en fut… majd kipróbálok mást (pl. Google Picasa), de most mennem kell szavazni…

DropBox

BTW visszatertem a nyaralasbol 🙂

A hugom gepen talalkoztam ezzel az alkalmazassal (DropBox) es hamar megtetszett. A funkcioja hogy kulonbozo gepek es felhasznalok kozott lehet fajlokat szinkronizalni.

Nekem gyakran kell az asztali es a notebook gepem kozott fajlokat, konyvtarakat, meghajtokat szinkronizalni, es kesz remalom. Probaltam mar par szinkronizalo progit, de nem igazan valtak be. Mar arra is gondoltam, hogy irok egyet, csak meg nem dolgoztam ki a reszleteket. Ahhoz hogy jol mukodjon, es hatekonyan tudjon kezelni file/konyvtar atnevezeseket, athelyezeseket tervezesnel kell egy kicsit gondolkodni.

Na, a dropbox sajnos erre nem jo, de masra igen. Mivel a lenyege egy online tarhely ahova es ahonnan mindig szinkronizalja a fajlokat. Termeszetesen ez a tarhely korlatozott (2GB ingyenes), igy filmgyujtemenyunket nem fogjuk tudni ezzel gepek kozott masolni. Van viszont verziomentes, undelete, ha leeg a hazunk akkor is van egy masolat. Nem kell a gepeknek egyszerre bekapcsolva lennie, megoszthatunk konyvtarakat masokkal. Ez egy fontos dolog, hogy nem csak a sajat gepeink kozott mozgathatunk fajlokat. Hugom is erre hasznalta, hogy munkatarsakkal adatokat osszanak meg, es kozosen dolgozzanak rajtuk. Persze ez nem forraskod megosztasra valo, arra ott vannak a verziokoveto rendszerek. De ha binaris alomanyokat kell megosztanunk, pl. Photoshoppal, GIMPpel szerkesztett kepeket, vagy audiot, egyeb dokumentumokat arra remek lehetoseg az e-mail csatolmanyok helyett.

Van a dropbox installerrrel viszont egy problemam. Telepites alatt bezarja a Windows explorer folyamatot, igy az osszes nyitott intezot es a desktop/taskbar-t is. Ez utobbit aztan visszanyitja, persze a taskbar meretet elcseszi. Viszont az osszes windows intezoben nyitott konyvtarat lehet emlekezetbol visszanyitogatni. (Amihez nem vagyok hozzaszokva, es nem szeretek, epp ezert van a ‘restore previous folder windows at logon’ bekapcsolva)

Comparison of online backup services