Forfatterarkiv: mike

Multiple X Sessions

Stats session on X-Terminal 1 startx — :1

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

/proc in freebsd

in fstab: proc /proc procfs rw 0 0 mount /proc

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

CUPS In freebsd

install port /usr/ports/print/cups You gotta replace the old lpr with cups’s lpr for all stuff to work. demo1# rm /usr/bin/lpr demo1# cp /usr/local/bin/lpr /usr/bin/lpr

Udgivet i Uncategorized | Skriv en kommentar

Apache logfiles in MySQL

The database: Database changed mysql> describe weblog; +————-+————–+——+—–+———+—————-+ | Field | Type | Null | Key | Default | Extra | +————-+————–+——+—–+———+—————-+ | ID | int(11) | | PRI | NULL | auto_increment | | remotehost | varchar(255) | | … Læs resten

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

Enabling directory indexes in Apache (2)

The default setting should be something like: <Directory /> Options FollowSymLinks AllowOverride All </Directory> Just add indexes: <Directory /> Options FollowSymLinks indexes AllowOverride All </Directory>

Udgivet i Apache, FreeBSD, Knowledge Base, Lamp, Linux, Old Base | Skriv en kommentar

Strong passwords

1. Pick a sentence that has meaning for you and that you will remember. i.e. I work at cox today. 2. All consonants (or all vowels) become UPPERCASE characters. 3. All vowels (or all consonants as it is the opposite … Læs resten

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

Change MAC Adress on Windows 2000

Check out this new tool for changing MAC addresses on Windows 2000 & XP, for almost all Network Adapters out there! It doesn’t change the hardware MAC address, just the MAC address that got interpreted by the network adapter drivers … Læs resten

Udgivet i Knowledge Base, Networking, Windows, Workstation | Skriv en kommentar

Pen test, SQL Injection

Here’s the string you can drop in web form inputs to see if they’re vulnerable to SQL injection (on Microsoft SQL server anyway): ‘; select * from OPENROWSET(‘SQLOLEDB’,’192.168.0.1′;;,’select @@version’)– To verify results, replace the IP address w/ that of the … Læs resten

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

Secure include($_REQUEST[‘page’])

<? $allowed=explode(‘ ‘,’forside profil produkter sikkerhed service kontakt’); if (in_array($_REQUEST[‘p’],$allowed)) { include($_REQUEST[‘p’].’.inc’); } else { include($allowed[0].’.inc’); } ?> include file.inc as contained in $_REQUEST[‘p’] (query variable) if `file` are liste in the $allowed array.

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

Mount iso file under freebsd

pinable# mdconfig -a -t vnode -f WarLinux-0.5cd.iso -u 0 pinable# mount -t cd9660 /dev/md0 /mnt

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