Archive for Şubat, 2010

Özgür Yazılım ve Linux Günleri / 2010

İstanbul Bilgi Üniversitesi Bilgisayar Bilimleri Bölümü ve Linux Kullanıcıları Derneği’nin 9 yıldır düzenlemekte oldukları etkinlikler bu yıl ‘Özgür Yazılım ve Linux Günleri’ ismi altında birleşiyor.

2-3 Nisan 2010 tarihlerinde İstanbul Bilgi Üniversitesi Dolapdere Kampüsü’nde gerçekleşecek olan etkinliğin bu yıl konuk edeceği isimler arasında Matt Zimmerman (Canonical/Ubuntu), Leslie Hawthorn (Google) ve Brian King (Mozdev) yer alıyor. Etknilik hakkında daha detaylı bilgiyi web sitesinde bulabilirsiniz. 2010 yılının bu önemli buluşmasını şimdiden takvimlerinize işaretleyin.

Etkinlik web sitesi: http://www.ozguryazilimgunleri.org.tr

Screen Unlock Meterpreter Script

In this video, we look at a demo of the screen unlock meterpreter script. The script needs SYSTEM privileges and patches the msv1_0.dll loaded by lsass.exe so that every password will be accepted to unlock the screen. (the patch can also be undone to get back to normal behavior). Currently Windows XP SP2 and SP3 are supported. You can download it from here. The script author’s blog has more details.

Thanks go out to PaulDotCom for uploading this to vimeo.

Meterpreter Screensaver unlock script from PaulDotCom on Vimeo.

Lets run any command you want on every machine in your domain.

After listening to Larry’s excellent technical segment on dumping the event logs from a large list of computers, I decided to try it out on my own. If you missed the technical segment, you can find the notes here. To do my own testing I needed to start with a large list of computers. For my list, I want to have the names of every computer in the domain. So I turned to “dsquery computer ” to get a list of all computers.
C:\WINDOWS> dsquery computer
"CN=CONTROLER1,OU=Domain Controllers,DC=subdomain,DC=domain,DC=com"

BLA BLA BLA… Truncated

"CN=WORKSTATION1,OU=ORGUNIT1,OU=OrgUnit2,OU=OrgUnit3,DC=Subdomain,
DC=Domain,DC=com"

BLA BLA BLA… Truncated again

The length of the results changes because of the variable number of subdomains, but fortunetly for us the workstation name is always the first part of the string. It is always between the CN= and the first comma. We can strip out the workstation name with the “DELIMS” and “TOKENS” option of the FOR loop. Also, by default DSQUERY will only return the first 100 results. This can be changed using the “-LIMIT” option. Setting the LIMIT to 0 returns all result. For now lets check our output looking at only two entries.

C:\WINDOWS>for /F "delims=, tokens=1" %i in ('dsquery computer -limit 2') do echo %i

C:\WINDOWS>echo "CN=WORKSTATION1
"CN=WORKSTATION1

C:\WINDOWS>echo "CN=WORKSTATION2
"CN=WORKSTATION2

We are almost there. I need to strip the first 4 characters of the line. For this I stole a page or two from Ed Skoudis’ play book. We can strip the first four characters with the SET command using the expression variable = %variable:~4%. But, since we are in a FOR loop we have to turn on delayed variable expansion and use ! instead of %.

C:\WINDOWS>cmd.exe /v:on /c "for /F "delims=, tokens=1" %i in
('dsquery computer -limit 2') do set name=%i & set name=!name:~4! & echo !name!"

Devamını okuyun

Kaldığım Yerden Devam

Uzun ama çok uzun bir zamandır hiç bir şey yazamadım bununla birlikte inşallah tekrar aktif olarak yazmaya başlayacağım. Kendimle ilgili güncelleme olarak şu an Amerika Birleşik Devletlerinde eğitimime devam ediyorum aynı şekilde bilgisayar hayatı devam ancak Türkiye’deki hayatıma nazaran epey bir yoğun. Kendimi geliştime adına (ingilizce yeni arkadaşlıklar) bir çok gerekli, gereksiz aktiviteye katılıyorum bu  aktivitelerde başı çekiyorum çekmeyede devam edeceğim. Bundan sonra zaman zaman ingilizce de yazmaya çalışacağım. Artık sadece teknik değil hayatttan da bazı şeyler yazmak istiyorum. En son olarak bulunduğum okulda bir Türk gecesi düzenledik başlangıç olarak 250 kişiden fazla misafirimiz oldu onlarla halay çektik misket, çiftetelli, roman havası oynadık. Leziz tatlarımızı kültürümüzü tanıttık başlangıç olarak çok güzeldi inşallah bundan sonra da böyle aktiviteler devam edicek. Tekrar görüşmek üzere.