Forfatterarkiv: mike

Størrelsen på en div i javascript [IE Only]

<div id=’mydiv’> Hvor hoej er den her crap div??<br><br><br>Saa hoej? </div> <script> height=document.all[“mydiv”].clientHeight || document.getElementById(“mydiv”).offsetHeight width=document.all[“mydiv”].clientWidth || document.getElementById(“mydiv”).offsetWidth alert(height+’ ‘+width) document.write(document.mytab.style.offsetHeight); </script>

Udgivet i Old Base, Programmering, Windows | Skriv en kommentar

Tailing dmesg [mike style]

while true; do clear; dmesg | tail; sleep 2; done;

Udgivet i Knowledge Base, Shellscript | Skriv en kommentar

Blaster removal

http://securityresponse.symantec.com/avcenter/venc/data/w32.blaster.worm.html

Udgivet i Old Base, Security | Skriv en kommentar

Register globals workaround

Be sure to think of the consequenses <? if (!empty($_REQUEST)) { extract($_REQUEST); } print $fisk; ?>

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

ProFTPD via MySQL

ProFTPD via MySQL With mod_sql you can handle your user authentication in ProFTPD via an MySQL table. Required is a fresh compiled actual ProFTPD with mod_sql enabled. Enable mod_sql ./configure –with-modules=mod_sql:mod_sql_mysql First you should create an new datebase named “proftpd” … Læs resten

Udgivet i Knowledge Base, Old Base, SQL | Skriv en kommentar

Apache (2.x) logfiler i MySQL

Flg, får apache til at formattere logen og parse den til stdin på mysqllog.pl CustomLog “| /usr/bin/mysqllog.pl” mysql LogFormat “%h#%v#%U#%{User-agent}i#%{Referer}i#%s#%b#%r” mysql Mysqllog parser så input til mysql: #!/usr/bin/perl # script: mysqllog use DBI; use constant DSN => ‘dbi:mysql:system’; use constant … Læs resten

Udgivet i Apache, Knowledge Base, Old Base | Skriv en kommentar

tunnel specifik protocol out from NAT’ed hosts

root@chilibeans ~/dksback# ssh -l mike unifix.org -R 13306:127.0.0.1:3306 mike@unifix.org’s password: here chilibeans are behind a nat firewall and does not have a public ip, this make me able to contact chilibeans’s mysql server from unifix.org by connecting to 127.0.0.1:13306 unifix# … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Ipw2100 on FreeBSD

http://damien.bergamini.free.fr/ipw/install.html

Udgivet i FreeBSD, Links | Skriv en kommentar

Penetrating Advanced Guestbook 2.2

vuln. to sql injection, use following as password and blank username: <code> ‘) OR (‘a’ = ‘a </code>

Udgivet i Knowledge Base, SQL | Skriv en kommentar

Microsoft Developer Network

http://msdn.microsoft.com/library/default.asp http://www.online-admin.com/ntset.html#TNTUserMan

Udgivet i Windows | Skriv en kommentar