Archive for January, 2008

su

Posted: January 26, 2008 in Linux
Tags: ,

Satu masalah kecil, setelah menambah user di BackTrack, tiba-tiba dapat “sorry” waktu “su”,

k-elektronik ~ $ su

sorry. 

Sesudah utak atik sedikit, ketemu solusinya :

(jangan lupa kamu harus root)

k-elektronik ~ # chmod u+s /bin/su

k-elektronik ~ $ su
Password:

Advertisements

Shutdown Linux Client Remotely

Posted: January 26, 2008 in Linux
Tags: ,

Trik berikut dapat digunakan untuk mengontrol komputer dari jauh, dalam contoh ini, shutdown (semua) client dari jauh.

A. Set client

1. ssh ke salah satu client, gunakan root account

rumy@k-elektronik:~$ ssh 192.168.0.101 -l root

root@192.168.0.101’s password:

2. buat remote root login tanpa password

root@client-1:~# rsa-keygen -t rsa

(tekan enter beberapa kali untuk membuat keypair (dan jangan lupa untuk mengosongkan isian password hashing), ini akan membuat: private (id_rsa) dan public (id_rsa.pub) keypair yang akan disimpan di direktori .ssh)

3. salin public keypair id_rsa.pub ke authorized_keys

root@client-1:~# cd .ssh
root@client-1:~# cp id_rsa.pub authorized_keys

4. salin tiga file id_rsa id_rsa.pub authorized_keys ke semua client – root login

root@client-2:~# scp * root@client.ip.address:/root/.ssh

5. Buatlah script berikut di server atau control pc :

rumy@k-elektronik:~$ cat off
#!/bin/sh
for addr in 101 102 103 104 105 106 107 108 109 110
do
ssh -l root 192.168.10.$addr halt
done
rumy@k-elektronik:~$ chmod +x off

6. Untuk mematikan semua client, cukup mengetik :

rumy@k-elektronik:~$ ./off

Google Talk on Pidgin

Posted: January 26, 2008 in Linux
Tags: ,

Meskipun sudah mengikuti tutorial di google, pidgin ku tetap tidak bisa login, tapi sesudah diganti seperti berikut :

Force old (port 5223) SSL: Checked
Allow plaintext auth over unencrypted streams: Un-Checked
Connect Port: 443
Connect Server: talk.google.com
Proxy type: Use Global Proxy Settings


Akhirnya jalan juga ;)

Ubuntu – Gutsy Gibbon (Installed it on Dec 11th 1007) was too easy and I didn’t like it. It made me look like some kind of dummy who didn’t know what to do.

So this is what I did (and I suggest anyone with guts to do so).

(1) I grabbed a fresh copy of BackTrack 3 Beta, the one which can be installed on USB stick, converted it to an iso file (with some tweak on its make_iso file) and burned it on DVD.

(2) Put the DVD on my toshiba laptop and fired it up

login : root

password : toor

(3) Formatted my 15Gigs Ubuntu / partition and my 200Megs /boot partition (but sane enough to leave my 65Gigs /home unformatted) ^__^

# mkfs.ext3 /dev/sda1

# mkfs.ext3 /dev/sda2

# mkfs.ext3 /dev/sda3

# mkswap /dev/sda3

(4) Mounted the / partition to /mnt/bt3

# mkdir /mnt/bt3

# mount /dev/sda1 /mnt/bt3

(5) Started the BackTrack GUI

# xconf

# startx

(6) And dumped BT3 to /mnt/bt3 via its KDE menu

I played a lot with Slackware before and thought that a little tweak could turn this Slackware derivative distro (Backtrack was build from Slax distro, which was build from Slackware) near to the original Slackware again – not just a live distro which can only be run from CD/DVD/USB – kudos for the BackTrack team who provided a way to dump this cool pentest distro to the harddrive