Run Hydra in bash upon a password list;
ncat for the potential port for each protocol, some additional port / protocol could be added of course.
You will require to set couple of file, one would be login (one user per line) + password (still one by line)
Continue reading “Hydra in bash”
First, let install the prerequisites as if needed:
Continue reading “Handbrake-cli on Centos”
Working from text files, sometime you might come accross the need to remove the line numbers from line into a file.
cat file_with_line_nbers | sed 's/ *[0-9]*.//' > my_new_file
This script is checking the CPU Temp sensor; If one reach the threshold then a notification or shutdown (if needed) is done.
A few variables required to be set; then you are done
Continue reading “Sensor CPU check in bash”
If you do have some spare HW or Raspberry pi; Having your own Lab using an Esx(i) you might consider to look into such of project…
Continue reading “Web (v)sphere client for your Esx(i) with your Raspberry Pi”
By default configured to accept connection from local system (127.0.0.1). This should avoid open mail relay problem.
To allow connections from ALL hosts/LAN IPs open sendmail.mc file (login as the root):
# vi /etc/mail/sendmail.mc
Look for line that read as follows:
Comment or remove above line and insert new line that read as follows:
Above line will force to accept connection from any host. Save the file. Regenerate sendmail configuration file using m4:
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
If this command is resulting by giving such of error as below, this means that the file
/etc/mail/sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
Then, this means that the sendmail.cf.xx rpm package is missing and require to be installed.
In my case, I had to mount the cdrom, and look for this rpm file:
Restart sendmail service :
# /etc/init.d/sendmail restart
I had the need to remove from several folders that the same level the first 5 characters recursively.
for i in **; do [[ -d "$i" ]] || continue; mv "$i" "$(echo $i | sed -e 's/^.......//')";done
I had a quick look over this interface that integrate some common tool as Sabnzbd, Sicxkbeard and XBMC (also some others).
If you wish to run this interface on your Syno NAS:
– From another machine running linux, GIT is needed to download Htpc Manager; However you can copy the files from to any others machines and run this interface as soon as Python is present.
git clone git://github.com/styxit/HTPC-Manager.git
- once the download is done. Copy the entire folder onto your NAS; In my case I did copy it on the volume1 of my NAS.
cp -r /volume1/share/HTPC-Manager/ /volume1/@htpc
- Now, navigate into the folder, once there; verify if the python is well found; run this command start it:
Checking the opened port for any remote IP on your network or others.
Continue reading “Port scan using bash”
Having dynamic IP addressing from your Internet Provider (ISP) could give you some trouble; especially when you need to remotely accessing machines;
I had to write a little script that regulary based checks my external IP; And if it change then sending to me an email.
Schedule it into your crontab and you are done.
Below, the script :
Continue reading “External IP change notification”