Se utilizzate la datata piattaforma CMS dblog (sviluppata con il vecchio ASP) e improvvisamente non riuscite ad vedere più i contenuti del vostro blog e dopo svariati controlli non vi sembra di aver subito attacchi o injection provate questa veloce risoluzione che vi spiego di seguito.
Per risolvere il problema dovete operare sul file inc_funzioni.asp che si trova sotto la cartella dblog.
Per procedere con prudenza copiate il file attuale e fatevene una copia per es. inc_funzioni.asp.20170423
A questo punto scaricatevi il file originale e apritelo con un editor di vostra scelta andate sul fondo del file e troverete la funzione GeneraPagina.
La quarta riga all'interno della funzione dovrebbe essere la seguente
StringaSplit = Chr(0)
modificatela come segue
'StringaSplit = Chr(0)
StringaSplit = "|"
o scegliendo un altro carattere che reputate meglio come separatore.
Ricaricate il file sostituendolo al precedente e il problema di dblog con i contenuti sostituiti da #] dovrebbe risolversi.
To delete files with names with special charactes, who can't be deleted by simply issuing a simple rm command, proceed with the following method.
In the following example I suppose to have to delete a directory with the following name
'='0&parent=19&id_cat=21&offset=-4&id_prodotto=102
created by an attack on a site in /var/www
- Find the inode of the file or the directory you want to delete with the following command
ls -ilath /var/www
- Delete the file with the inode you found with the previous command
find . -inum 101004 -exec rm {} \;
To check the version on your Centos from terminal issue the following command
cat /etc/redhat-release
To change timezone on an Ubuntu machine from terminal issue as root the following command
dpkg-reconfigure tzdata
Change default crontab editor on Ubuntu
When you edit crontab for the first time on a Linux Ubuntu you will be asked which editor you want to use.
If you want to chage your first choice, maybe after adding another editor to your Ubuntu installation you may issue the following command
select-editor
Backup your bash history to a file
Flush the history to the file
history -w historybackup.txt
where historybackup.txt is the file name where to save your history.
Clear bash history completely
Flush the history to the file
history -w
Clear the history
history -c
Count the number of file in a directory from terminal type:
find folder -type f | wc -l
Change keyboard layout from terminal type:
dpkg-reconfigure keyboard-configuration