BIKIN BOT SERVER LIVE UPTIME VIA FACEBOOK
#1
bingung mau taro di mana .. ya taro disini saja yahh.. ini ide ane iseng2 ngotak-ngatik serper ... ane binun mau buat apa jadi mending ane ngetes buat facebook auto bot status untuk konfirmasi keadaan server hehehe .. bagi teman2 di forum ini yang berteman dengan ane bisa liat sendiri gimana status ane yang secara otomatis (bot) terposting di facebook yang memastikan bahwa server IBT dalam keadaan baik dan up .. ok langsung aja yah

pertama-tama kita perlu install yang di perlukan

1. php5
2. php5-cli

Code:
apt-get install php5 php5-cli

kemudian cek apakah php5-cli telah berjalan dengan baik di server kita ...

Code:
root@indonesianbacktrack:/uid# php -r "echo phpversion();"
5.3.3-1ubuntu9.10
root@indonesianbacktrack:/uid# php -r "echo ini_get('allow_url_fopen');"
1
root@indonesianbacktrack:/uid#

nah kalo sudah benar .. kita install tools nya ...

download fasilitas update facebook via terminal linux disini

http://fbcmd.dtompkins.com/downloads

kalau sudah kita kasi permission esekusi dan install

Code:
root@indonesianbacktrack:/uid# ./fbcmd_update.php install

fbcmd update utility [version 3.0]
http://fbcmd.dtompkins.com/update

.....................

Update: COMPLETE!

fbcmd version: [none] --> [1.1]

Note: fbcmd_update.php is now at [/usr/local/lib/fbcmd/fbcmd_update.php]
so you can remove the old one at [/uid/fbcmd_update.php]


type fbcmd to begin

kita esekusi dah ...

Code:
root@indonesianbacktrack:/uid# fbcmd

Welcome to fbcmd! [version 1.1]


This application needs to be authorized to access your facebook account.

Step 1: Allow basic (initial) access to your acount via this url:

https://www.facebook.com/dialog/oauth?client_id=42463270450&redirect_uri=http://www.facebook.com/connect/login_success.html
to launch this page, execute: fbcmd go access

Step 2: Generate an offline authorization code at this url:

http://www.facebook.com/code_gen.php?v=1.0&api_key=42463270450
to launch this page, execute: fbcmd go auth

obtain your authorization code (XXXXXX) and then execute: fbcmd auth XXXXXX

sekarang akses url yang di berikan secara default oleh fbcmd ..

https://www.facebook.com/dialog/oauth?cl...ccess.html

klo ada verifikasi2 itu tidak jadi soal dan aman ... itupun kalau kita mengenable verfikasi keamanan device facebook...

terus akses yang kedua ...

http://www.facebook.com/code_gen.php?v=1...y=xxxxxxxx .. ikuti perintah2 verifikasi sampe dapet kode verifikasi .. hehehe

kalau kita make tools ini di desktop biasa maka bisa anda gunakan perintah

#fbcmd go access
#fbcmd go auth

berhubung ini ane mainkan di server dan hanya via remote ssh .. maka ane pasang manual code verifikasi ane

Code:
#fbcmd go auth xxxxxx

Code:
root@indonesianbacktrack:/uid# fbcmd auth xxxxxx

fbcmd [v1.1] AUTH Code accepted.
Welcome to FBCMD, Zico Sweaty Ekel!

most FBCMD commands require additional permissions.
to grant default permissions, execute: fbcmd addperm

sudah sip ... tinggal kita coba update status Big Grin

untuk melihat seluruh perintah2 ..
$ fbcmd help

perintah2 lainnya
$ fbcmd ppics =all /tmp/fbcmd/ppics/
$ fbcmd fpics

untuk save semua foto2 yang di tag

$ fbcmd fonline
Untuk melihat semua teman2 yang online

$ fbcmd finfo birthday_date -csv
Untuk menyalin ulangtahun teman2 di fb dalam format csv

$ fbcmd whoami
Untuk melihat profil id

$ fbcmd status “Tes tes ..Big Grin
untuk ngupdate status kita ...

nah gimana biar kita bisa memasukan informasi2 server .. nah ane ada ide sedikit.. mari kita buat bash ..

Code:
#/bin/bash
#coded by zee eichel
UPTIME=uptime
WHO=finger
fig='figlet IBT'
W=whoami
id=id

fbcmd status "`$fig` Server live :`$UPTIME` check from `$W` `$id`"

Terus kita masukan deh di cron job agar server memainkan script secara berkala ..

Code:
crontab -e
30 * * * * /uid/status.sh

untuk menjalankan script tiap 30 menit di server.. berarti tiap 30 menit ente akan update status tentang kondisi server hehehe .. ane tambain mention ke user2 tertentu .. tinggal tambain @ .. kwkwkw.. selamat berkarya ya... Big Grin
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only

#2
ohh ini toh,yg di fb om zee,
update status via command line Smile

#3
mantap om nanti dah boleh coba" wkwkwkkw
Every Second, Every Minutes, Every Hours, Every Days Its Never End

#4
serem lw, lewat terminal itu Smile

#5
founder wajib ikut rule ga ya??
wrong room wwkkww Tongue


keren ni om zee (y)

#6
(08-16-2012, 11:28 AM)junior.riau18 Wrote: founder wajib ikut rule ga ya??
wrong room wwkkww Tongue


keren ni om zee (y)

harus dong om juni namanya aja rule's kudu di jalani siapa aja wkwkwk . . .
thnk's om Zee sharenya Smile
Spoiler! :
<<Back|Track
☆‍‍‍‍☆‍‍‍‍☆‍‍‍‍☆☆


#7
Mantapp Om,,,,
saya dah coba

#8
hhaahah kira2 dimana .. soalnya ini bukan tutorial backtrack Big Grin
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only

#9
maaf itu atas account saya juga ^ ^

dapet dari tmen om....
lumayan mantap,

tambahan om,klo mau Online fb,saya pake pidgin ^ ^
Klik Here

Clound@IBTeam:~#
EMail Me : [email protected]

#10
ya pake pidgin jga ok .. tapi ini untuk update status server informasi dari server cli Big Grin
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only






Users browsing this thread: 1 Guest(s)