zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Second chance: etckeeper

February 1, 2011 by Igor Drobot Leave a Comment

Etckeeper is a useful tool to store /etc in a version control system. It allows you to read the changes that have been made to the files in /etc, document these changes and recover a previous version of a modified file in case we made some changes that we don’t want to keep. It’ s a great system to control your server and find very quickly solutions.

Its installation is very trivial:

1
aptitude install etckeeper

aptitude install etckeeper

[Read more…]

Filed Under: Bash, Debian, Linux Tagged With: Etckeeper, GIT

How to Bruteforce SSH

January 30, 2011 by Igor Drobot 17 Comments

SSH is an acronym which stands for Secure SHell, which provides a secure shell access to a remote machine.

This brut force tool is great to test some security stuff like iptables or sshguard.

You are able to see the proceeder of real hacking attempt.

Like most brute forcing tools, you’ll first need a pretty big passlist. You can get one from here:

1
wget https://zeldor.biz/other/bruteforce/passlist.txt

wget https://zeldor.biz/other/bruteforce/passlist.txt

[Read more…]

Filed Under: Bash, Debian, Linux, Networking Tagged With: hacking, SSH Brute force, SSH Security

Progress bar for DD

January 21, 2011 by Igor Drobot Leave a Comment


I am still searching for a perfect progress bar for DD, I know a dirty trick[*1] – put DD to background an sending “USR1” signal to bring it to show a progress – I hate this solution!

This one is not so dirty, but you have only the done progress and transfer speed.

1
2
dd if=/opt/wap/Backup.tib | pv | ssh -c arcfour id@tower "dd of=/home/id/Backup.tib"
1.94GB 0:01:15 [30.1MB/s] [<=>

dd if=/opt/wap/Backup.tib | pv | ssh -c arcfour id@tower "dd of=/home/id/Backup.tib" 1.94GB 0:01:15 [30.1MB/s] [<=>

Dirty trick:
Only local way!

1
2
dd if=/opt/wap/Backup.tib of=file.img bs=4KB& pid=$!
while true; do kill -USR1 $pid && sleep 1 && clear; done

dd if=/opt/wap/Backup.tib of=file.img bs=4KB& pid=$! while true; do kill -USR1 $pid && sleep 1 && clear; done

Filed Under: Bash, Debian, Linux Tagged With: dd, progress bar, transfer

Mount LVM from liveCD

January 21, 2011 by Igor Drobot 2 Comments

Yeah after installation of Windows seven – my Grub-Bootloader was removed and I get only the Windows bootmager.

This article describe hot to mount root “/” which was created on LVM from a live CD and install GRUB Boot-Loader.

Step 1: Get a live CD in my case it was Ubuntu 10.10 Desktop edition.
[Read more…]

Filed Under: Bash, Linux Tagged With: LVM, rescue

Squid visited sites

January 21, 2011 by Igor Drobot 2 Comments

You have a IP-Address from a PC, and you want to know which web-sites ware visited from this PC.

Grep for PCs IP-Address in the access log of your proxy box.

As result you will get a list with visited sites.

1
grep 172.16.0.5 /var/log/squid3/access.log | cut -d" " -f7 | sort -u | less

grep 172.16.0.5 /var/log/squid3/access.log | cut -d" " -f7 | sort -u | less

Filed Under: Bash, Linux Tagged With: Proxy, Squid

  • « Previous Page
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 10
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok