Currently browsing category

Hebergement

base64_decode and co

un tiot php pour les virer <?php /** * Nettoire les fichiers * * @param string $name */ function nettoieFichier($name){ //ouvre le fichier $data = file_get_contents($name); $count = 0; $data = str_replace('eval(base64_decode(\'<——EDIT——>\'));','',$data,$count); if($count!=0){ echo ' Patched '; file_put_contents($name,$data);//ecrit le fichier } } /** * Parcours un repertoire * * @param string $repname */ function parcoursRep($repname){ $dir = opendir($repname); //lit le repertoire while (($file = readdir($dir)) !== false) { //Si c'est unfichier if(!is_dir($repname .'/'. $file)){ $extension1 = substr($file, -3, 3); $extension2 = substr(strrchr($file,'.'),1); //verifien si c'est une extension php if($extension1==$extension2){ if($extension1=='php'){ echo "Traitement du fichier : $repname/$file"; nettoieFichier($repname.'/'.$file); echo "\n<br>"; } } }else{//Si c'est un dossier if($file!=".." && $file!='.'){ echo "Dir : $repname/$file \n<br>"; parcoursRep($repname .'/'. $file); } } } …

Lighttpd – HowToSimpleSSL – lighty labs

Setting up a simple SSL configuration¶ Setting up a simple SSL configuration with Lighttpd is quite easy. Though this method should be used with care because this setup will only provide proper encryption, not authentication! The user will be presented with a query whether to accept the certificate or not! …

Debian — OpenVz | K1drUx

« Gestion des ressources allouées » Gérer la mémoire allouée à un VE # vzctl set {id} –privvmpages $((65536*2)):$((69632*2)) –save Cette commande permet de limiter l’utilisation du cpu à hauteur de 15% de la totalité des cpu physiquements présents. # vzctl set {id} –cpulimit 15 –save Ne pas mettre à …

LinuxHostingSupport » 2010 » December

Plesk: cannot remove email/domain/client: mailmng failed: Some errors occuredPosted by admin Category: Plesk Management If the mail handlers in Plesk are corrupt, you will be unable to remove the email account OR the domain from the Plesk control panel which results in the following error—————————————– mailmng failed: Some errors occured. …

Authentification automatique par SSH sans mot de passe

Voici comment ça fonctionne Imaginons un poste client et un poste serveur, nous tentons évidement d’etablir une connexion ssh du client vers le serveur. Habituelement, nous tapons la commande : ssh user@machine , puis l’on entrait le mot de passe. Pour éviter cela, nous allons faire 2 choses : 1. …

2skies.com :: basic http authentication with lighttpd

Password protection can limit access to your website or a specific sub-directory. lighttpd.conf Make sure you enable mod_access and mod_auth in your lighttpd.conf: server.modules += ( « mod_access » ) server.modules += ( « mod_auth » ) htpasswd #htpasswd -c ~/lighttpd/foo-auth.xt username Running this command will prompt for this user’s new password to store …