Internet

ISPConfig3: Mail aliases for login to Dovecot

0

If you knew ISPConfig2 you probably remember the user login approach which was done there:

Login: web23p2
Password: OurBrilliant Password

Now with ISPConfig3 this has changed to the better by using the users email address – sounds cool – it is!
But what about migration from ispconfig 2 to ispconfig 3 – you do not want to drive around and setup every user account again – or send emails and then the user fails to set it up.

To prevent that you can just add an alias column to the mail user table

ALTER TABLE `mail_user` MODIFY COLUMN `alias` varchar(255) NOT NULL DEFAULT '' AFTER `email`;

Then just fill it with the old logins like webXpX using phpMyAdmin, Sequel Pro or even the console.

If you are done with that, just login to your server and change the dovecot sql config file:

nano /etc/dovecot/dovecot-sql.conf

by changing the user and password queries:

password_query = SELECT password FROM mail_user WHERE (email = '%u' OR alias = '%u') AND disable%Ls = 'n'

user_query = SELECT email as user, maildir as home, CONCAT(maildir, '/Maildir') as mail, uid, gid, CONCAT('maildir:storage=', quota) AS quota, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (email = '%u' OR alias = '%u') AND disable%Ls = 'n'

I will update this post when I figure out the postfix stuff…

You are done – hope that this saved your weekend ;)

SEO: Blackhat Tactics – Part 1

0

During working on a customer SEO project I just came across a competitor which is massively using black hat SEO tactics. Ethically now the question pops up, if the right approach is to respond by using the same or even better tactics. So here are some interesting reads on how to approach this situation.

Black hats really like to use automatic content generators, which post answers to forum posts or blog comments, just by querying databases like e.g. Yahoo Answers:

http://developer.yahoo.com/answers/

The tools used here are in my opinion highly black stuff, so if you follow these links you do it on your own and have been warned:

http://www.blackhatworld.com/blackhat-seo/cloaking-content-generators/65432-phpbb-auto-forum-poster.html
http://www.blackhatworld.com/blackhat-seo/cloaking-content-generators/28074-best-auto-content-generator.html
http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/174743-fastest-way-harvest-relevant-urls.html
http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/35060-any-one-have-auto-forum-poster-forum-leecher-tools-collect-automated-post-other.html
http://www.wjunction.com/showthread.php?t=29288
http://megarapid.net/forums/p/56059/56059.aspx
http://www.blackhatworld.com/blackhat-seo/cloaking-content-generators/25315-forum-content-generator.html
http://www.xdreams.ch/black-hat/blackhat-seo-blogs/

And there are even some “commercial” tools for forum and blog posts, to support you with your black thinking:

http://www.instadigi.com/
http://www.scrapebox.com/

And if you need a good content generator just head over to:

http://getyacg.com/

Feel free to do what ever you read in the links, but be warned that these tactics might get you blocked by google or other SEs for years…

On the opposite I can just sit down and read another nice SEO Book

http://tools.seobook.com/

Joomla 1.5 Password Encryption

0

Joomla! 1.5 uses md5 to hash the passwords. but see details here
When the passwords are created, they are hashed with a 32 character salt that is appended to the end of the password string.
The password is stored as

{TOTAL HASH}:{ORIGINAL SALT}

To see how this is tested for authentication take a look at plugins/authentication/joomla.php lines 80-116.
Here’s a Java class to check and create Joomla-format passwords:

Code:



public class Joomla15PasswordHash 
{
public static boolean check(String passwd,String dbEntry) {
if (passwd==null || dbEntry==null || dbEntry.length()==0)
throw new IllegalArgumentException();
String[] arr = dbEntry.split(":",2);
if (arr.length==2) {
// new format as {HASH}:{SALT}
String cryptpass = arr[0];
String salt = arr[1];

return md5(passwd+salt).equals(cryptpass);
} else {
// old format as {HASH} just like PHPbb and many other apps
String cryptpass = dbEntry;

return md5(passwd).equals(cryptpass); 
}
}

static Random _rnd;

public static String create(String passwd) {
StringBuffer saltBuf = new StringBuffer();
synchronized (Joomla15PasswordHash.class) {
if (_rnd==null) _rnd=new SecureRandom();
int i;
for (i=0;i<32;i++) {
saltBuf.append(Integer.toString(_rnd.nextInt(36),36));
}
}
String salt = saltBuf.toString();

return md5(passwd+salt)+":"+salt;
}

/** Takes the MD5 hash of a sequence of ASCII or LATIN1 characters,
* and returns it as a 32-character lowercase hex string.
*
* Equivalent to MySQL's MD5() function 
* and to perl's Digest::MD5::md5_hex(),
* and to PHP's md5().
*
* Does no error-checking of the input, but only uses the low 8 bits
* from each input character.
*/
private static String md5(String data) {
byte[] bdata = new byte[data.length()]; int i; byte[] hash;

for (i=0;i<data.length();i++) bdata[i]=(byte)(data.charAt(i)&0xff );

try {
MessageDigest md5er = MessageDigest.getInstance("MD5");
hash = md5er.digest(bdata);
} catch (GeneralSecurityException e) { throw new RuntimeException(e); }

StringBuffer r = new StringBuffer(32);
for (i=0;i<hash.length;i++) {
String x = Integer.toHexString(hash[i]&0xff);
if (x.length()<2) r.append("0");
r.append(x);
}
return r.toString(); 
}
}

Konstenloser Online TV Rekorder

0

Durch Zufall habe ich diesen kostenlosen Online TV Rekorder gefunden. Der ist wirklich super und funktioniert genauso wie ich es mir immer gewünscht habe :) . Probiert ihn einfach mal aus…http://www.onlinetvrecorder.com/
technorati tags:vdr, internet

Default WebServer path for Mac OS X

0

nice to know – the path per default is

/Library/WebServer/Documents

Confixx logfile – with automated directory creation – pipelog.pl

0

[perl]
#!/usr/bin/perl
###### Confixx-Apache-PipeLog
## zum Loggen der Webzugriffe pro User
########## erstellt am Sun Sep 26 22:13:28 2004 ###
$logDir = “/var/log/apache2/sites/confixx/domains”;
$stdLog = “/var/log/apache2/sites/confixx/stdlog_access”;
while( ){
($domain, $log) = split(/:#?:/, $_, 2);
$domain = lc($domain);
$userLogDir = “$logDir/$domain”;
if(! -d $userLogDir){
`mkdir $userLogDir`;
}
$logfile = “$userLogDir/access.log”;
if(! -f $logfile){
`touch $logfile`;
}
$worked = 0;
if(-f $logfile){
$target = readlink($logfile);
unless(-l $target){
if(open(LOG, “>>$logfile”)){
print LOG $log;
close(LOG);
$worked=1;
}
}
}
unless($worked){
open(LOG, “>>$stdLog”) or next;
print LOG “$domain :: $log”;
close(LOG);
}
}
[/perl]

technorati tags:confixx

Deutsche Bank 24 – HBCI Plus einrichten

0

Wie richte ich HBCI Plus ein?

Wenn Sie ein neues Konto in Ihrer Software einrichten oder den Zugang zur Bank für bestehende Konten ändern wollen, konsultieren Sie bitte zunächst die Hilfe-Seiten zu Ihrem Programm bzw. Ihr Handbuch. Ergänzend benötigen Sie folgende Informationen:

Ihre Benutzerkennung: diese besteht aus Ihrer Filial-, Konto- und Unterkontonummer, also z. B.: 700123456700

Ihre User-ID: bitte lassen Sie dieses Feld leer, oder falls das nicht geht, füllen Sie es mit der Benutzerkennung

Ihre Bankleitzahl: bitte prüfen Sie auf jeden Fall, ob hier von der Software auch die richtige Bankleitzahl vorgeschlagen wird, weil es sonst zu Fehlern kommen kann

Die Adresse des Bankservers: https://fints.deutsche-bank.de

Ihre Online-PIN

Ihre Transaktionsnummern (TAN)

WordPress: Fluid code box in ig_syntax_hilite

0

go to: ./ig_syntax_hilite/css
open: syntax_hilite_css.css
and add
[css]

/* change this line to set the width of code box */
/* .syntax_hilite { width:500px; } */
.syntax_hilite { width:99%; }

/* change this line to set the width of code box in a list */
/* li .syntax_hilite { width:460px; } */
li .syntax_hilite { width:100%; }
.
.
.
/* change this line to set the width of plain text bar above code box */
/*.igBar { width:511px; }*/
igBar { width:100%; }

/* change this line to set the width of plain text bar above code box in a list */
/*li .igBar { width:471px; }*/
li .igBar { width:100%; }
[/css]

dont miss the cocoa section ;)
go to: ./ig_syntax_hilite/
open: syntax_hilite.php

[css]

switch($mType) {
case “cocoa”:
$mType = “java”;
$mTypeShow = “Cocoa”;
break;
.
.
.
[/css]

WordPress: Looking for WordPress Themes

0

I really looked very long for a good site with nice links to WordPress themes – finally there it is:

http://themes.wordpress.net/

That simple – look at wordpress.net and dont try the alternatives. Make good use of the sorting features, dont miss the WorldPress Preview option and you are done in 2 minutes ;)

Go to Top