Sunday 21 August 2011

Remote Google Translate untuk mIRC Script

 ###################################
##Title: Remote Google Translate                             
##Author: HambaMalam                                           
##Server: /server irc.kampungchat.org:6667           
##Channel: #hackers                                                
##Credit: RileksCrew+H3x4crew+Newbie3vilc063s
###################################

google translate:
info= %7C = |
http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello%20world&langpair=en%7Cit

alias tgo {
  set %tgo.input $replace($1- , $chr(32) , $chr(37) $+ 20 )
  if ($sock(tgo)) .sockclose tgo
  sockopen tgo ajax.googleapis.com 80
}

on *:sockopen:tgo:{
  sockwrite -nt $sockname GET /ajax/services/language/translate?v=1.0&q= $+ %tgo.input $+ &langpair=ms%7C $+ %tgo.lang HTTP/1.1
  sockwrite -nt $sockname Host: ajax.googleapis.com
  sockwrite -nt $sockname $crlf
}

on *:sockread:tgo:{
  sockread -f %tgo | tgoget %tgo
}
alias tgoget {
  if $1 != {"responseData": goto end
  msg $active  $replace($1- , "responseDetails": null , $chr(32) ,  "responseStatus": 200} , $chr(32) , {"responseData": {"translatedText":" , $chr(32), "} , $chr(32) , $chr(44) , $chr(32) )
  :end
}
alias tgo1 {
  set %tgo.input1 $replace($1- , $chr(32) , $chr(37) $+ 20 )
  if ($sock(tgo1)) .sockclose tgo1
  sockopen tgo1 ajax.googleapis.com 80
}

on *:sockopen:tgo1:{
  sockwrite -nt $sockname GET /ajax/services/language/translate?v=1.0&q= $+ %tgo.input1 $+ &langpair= $+ %tgo.lang $+ $chr(37) $+ 7Cms HTTP/1.1
  sockwrite -nt $sockname Host: ajax.googleapis.com
  sockwrite -nt $sockname $crlf
}

on *:sockread:tgo1:{
  sockread -f %tgo1 | tgoget1 %tgo1
}
alias tgoget1 {
  if $1 != {"responseData": goto end
  echo %translate Data: $replace($1- , "responseDetails": null , $chr(32) ,  "responseStatus": 200} , $chr(32) , {"responseData": {"translatedText":" , $chr(32), "} , $chr(32) , $chr(44) , $chr(32) )
  :end
}
on *:input:*:{
  if %translate != $active goto end
  if $left($1,1) == / goto end
  tgo $1- | halt
  :end
}
on *:text:*:#:{
  if $chan != %translate goto end
  tgo1 $1-
  :end
}
on *:text:*:?:{
  if $nick != %translate goto end
  tgo1 $1-
  :end
}


menu channel  {
  -
  Translator
  .Enable: set %translate $chan
  .Disable: set %translate off
  .LANGGUAGE
  .. english: set %tgo.lang en
  ..afrikaans: set %tgo.lang af
  ..albanian: set %tgo.lang sq
  ..arabic: set %tgo.lang ar
  ..croatian: set %tgo.lang hr
  ..filipino: set %tgo.lang tl
  ..french: set %tgo.lang fr
  ..german: set %tgo.lang de
  ..greek: set %tgo.lang el
  ..hebrew: set %tgo.lang iw
  ..italian: set %tgo.lang it
  ..japan: set %tgo.lang ja
  ..korean: set %tgo.lang ko
  ..polish: set %tgo.lang pl
  ..russian: set %tgo.lang ru
  ..serbian: set %tgo.lang sr
  ..spanish: set %tgo.lang es
  ..thai: set %tgo.lang th
  ..chinese: set %tgo.lang zh-CN
  ..dutch: set %tgo.lang nl
  ..swedish: set %tgo.lang sv
  ..bulgaria: set %tgo.lang bg
  ..czech: set %tgo.lang cs
  ..estonia: set %tgo.lang et
  ..Hungarian: set %tgo.lang hu
  ..Iceland: set %tgo.lang is
  ..Irish: set %tgo.lang ga
  ..Latvian: set %tgo.lang lv
  ..Macedonia: set %tgo.lang mk
  ..Norway: set %tgo.lang no
  ..Parsi: set %tgo.lang fa
  ..romania: set %tgo.lang ro
  ..turki: set %tgo.lang tr
  ..ukrain: set %tgo.lang uk
  ..urdu: set %tgo.lang ur
  ..vietnam: set %tgo.lang vi
  ..yiddish: set %tgo.lang yi
  ..slovenia: set %tgo.lang sl
  ..slovak: set %tgo.lang sk
  ..portugis: set %tgo.lang pt
  ..maltese: set %tgo.lang mt
  ..haiti: set %tgo.lang ht
  ..finnish: set %tgo.lang fi
  ..hindi: set %tgo.lang hi
  ..lithuanian: set %tgo.lang lt

}
menu query {
  -
  Translator
  .Enable: set %translate $$1
  .Disable: set %translate off
  .LANGGUAGE
  .. english: set %tgo.lang en
  ..afrikaans: set %tgo.lang af
  ..albanian: set %tgo.lang sq
  ..arabic: set %tgo.lang ar
  ..croatian: set %tgo.lang hr
  ..filipino: set %tgo.lang tl
  ..french: set %tgo.lang fr
  ..german: set %tgo.lang de
  ..greek: set %tgo.lang el
  ..hebrew: set %tgo.lang iw
  ..italian: set %tgo.lang it
  ..japan: set %tgo.lang ja
  ..korean: set %tgo.lang ko
  ..polish: set %tgo.lang pl
  ..russian: set %tgo.lang ru
  ..serbian: set %tgo.lang sr
  ..spanish: set %tgo.lang es
  ..thai: set %tgo.lang th
  ..chinese: set %tgo.lang zh-CN
  ..dutch: set %tgo.lang nl
  ..swedish: set %tgo.lang sv
  ..bulgaria: set %tgo.lang bg
  ..czech: set %tgo.lang cs
  ..estonia: set %tgo.lang et
  ..Hungarian: set %tgo.lang hu
  ..Iceland: set %tgo.lang is
  ..Irish: set %tgo.lang ga
  ..Latvian: set %tgo.lang lv
  ..Macedonia: set %tgo.lang mk
  ..Norway: set %tgo.lang no
  ..Parsi: set %tgo.lang fa
  ..romania: set %tgo.lang ro
  ..turki: set %tgo.lang tr
  ..ukrain: set %tgo.lang uk
  ..urdu: set %tgo.lang ur
  ..vietnam: set %tgo.lang vi
  ..yiddish: set %tgo.lang yi
  ..slovenia: set %tgo.lang sl
  ..slovak: set %tgo.lang sk
  ..portugis: set %tgo.lang pt
  ..maltese: set %tgo.lang mt
  ..haiti: set %tgo.lang ht
  ..finnish: set %tgo.lang fi
  ..hindi: set %tgo.lang hi
  ..lithuanian: set %tgo.lang lt

}

Install And Configure eggdrop (mIRC Bot)

1. SSH ke shell masing-masing atau dlm ubuntu boleh buka terminal :)
2. wget  ftp://eggdrop.risingnet.net/pub/eggheads/eggdrop/source/1.6/eggdrop1.6.19+ctcpfix.tar.gz
3. tar xvfz eggdrop1.6.19+ctcpfix.tar.gz
4. ./configure
5. make config
6. make
7. make install DEST=~/botdir
8. cd ..
9. cd botdir
10. pico lisa.conf
11. dlm lisa.conf paste configure file bawah ini:-

loadmodule channels
set mod-path "modules/"
loadmodule server
loadmodule ctcp
loadmodule irc
loadmodule notes
loadmodule console
loadmodule blowfish
set username "lisa"
set realname "Powered by RileksCrew"
set admin "shah"
set network "kampungchat"
set timezone "EST"
set userfile "Egg.user"
set chanfile "Egg.chan"
listen 3333 all
set nick "lisa^surihani"
set altnick "lisa_surihani"
#set my-ip "0.0.0.0"
#set my-hostname "0.0.0.0"
set servers {
irc.kampungchat.org:6667
}
bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
 global botnick
putquick "MODE $botnick +Bi-Tws"
}
channel add #hackers {
chanmode "+nt"
}
logfile mcso * "logs/Egg.log"
set log-time 1
set switch-logfiles-at 300
set help-path "help/"
set text-path "text/"
set temp-path "/tmp"
set motd "text/motd"
set telnet-banner "text/banner"
set userfile-perm 0600
set remote-boots 2
set share-unlinks 1
set ident-timeout 5
set answer-ctcp 3
set server-cycle-wait 60
set server-timeout 60
set serverror-quit 1
set bounce-bans 1
source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/userinfo.tcl
loadhelp userinfo.help
set max-notes 50
set note-life 60
set notify-onjoin 1
set console-autosave 1

12. tekan CTRL+X dan Y utk save configure file
13. run eggdrop dgn cmd ./eggdrop -m lisa.conf
14. Tengok di  channel #hackers dan private message bot anda "hello" dan masukkan password anda supaya bot anda set host anda :)

Install And Configure Energy Mech (mIRC bot)

1. wget http://www.energymech.net/files/emech-2.8.5-freebsd-static.tar.gz

2. tar -zxvf emech-2.8.5-freebsd-static.tar.gz

3. mv emech-2.8.5-freebsd-static mech

4. cd mech

5. pico mech.set

Configure Script:

#ENTITY        shah
# Link Password: A password for linking. -436287423-
#LINKPASS      shah321

# Link Port: A port the bot will listen on for linking, telnet,
#            and pipeuser(http://www.energymech.net/docs/pipeuser.html)
#            This has to be above 1024, and some firewalls, noteably
#            IP Masquerade/NAT may block this.
#LINKPORT      49152

# An example link configuration, here you have an ENTITY called
``hismech''
# and its LINKPASS  is ``a1b2c3''. It is running on ``mech.host.net'' and
# it's LINKPORT is 49152.
#LINK          hismech a1b2c3 mech.host.net 49152

# Another example, the entity ``hermech'' is not listening on any port
# (missing or non-working LINKPORT in config), so it does not matter
# what host it is on as well, thus "0 0" at the end(-help LINK).
#LINK          hermech abcdefg 0 0

# Automatic Linking: Uncomment this to enable auto-linking. This will
#                    cause the mech to try and link to all bots in it's
#                    list, until all are present.
#AUTOLINK

##### Server List ####
# Some undernet servers to connect to... You can use server names is you
wish,
# but putting the IP's here instead of host names speeds up connects
(alot).
# Servers are global, all mechs in the same process uses the same server
list.
#
SERVER  irc.kampungchat.org  6667

##### Bot 1 Configuration #####
# In EnergyMech, you can have multiple bots on IRC from the same config
# file/process. Traditionaly, the spawn command was used, however, that
# command has been removed in 2.8.2 and above due to abuse. You can still
# specify more than one bot in the config file as shown.

# Nick for the bot.
NICK          sofea

# The file we use to store the userlist. Note you will have to generate
# this with a command such as ./genuser emech.users
USERFILE      a.users

# All commands begin with this character.
CMDCHAR      `

# Register on IRC with this username (emech@xxxxxxxx). Note that if your
# machine is running identd, it will always be your username.
LOGIN        sofea
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
# If you compiled with SEEN support and decide not to use it, uncomment
this.
#NOSEEN

# Channel-Independant toggles and sets. See the -REPORT command for a full
# listing.
HASONOTICE        # Yes for Undernet.
TOG CC          1      # We want the bot to require command character
TOG CLOAK      1      # Ignore CTCP's from non-users? Yes.
TOG SPY        1      # Tell who is executing what in the partyline.
SET OPMODES    6      # How many modes in a line? 6 on undernet...
SET BANMODES    6      # How many bans in a line? 6 on undernet...
SET CTIMEOUT    90      # Server connection timeout
SET CDELAY      30      # Delay between connection attempts

# Basic channel setup. You can have as many of these as your server
# supports. See the -REPORT command for a listing.
CHANNEL        #shah     # Channel name
TOG PUB        1      # Allow public(in-channel) commands? Yes.
TOG MASS        1      # Do mass-mode/kick/ban checks...
TOG SHIT        1      # Activate the shitlist for this channel
TOG PROT        1      # Activate protection of users
TOG ENFM        0      # Dont enforce channel modes.
SET MDL        7      # How many -o before killing the guy?
SET MKL        7      # How many kicks?
SET MBL        7      # And how many Bans?
SET MPL        1      # What to do with massmoders?
#                      0 = nothing,
#                      1 = kick the bastard,
#                      2 = kickban 'em,
#                      3 = kickban & shitlist them.
##### END BOT 1 #####
##### Bot 2 Configuration #####
NICK          beyol
USERFILE      a1.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        WakJ
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END BOT 2 #####
##### Bot 3 Configuration #####
NICK          KampungChats
USERFILE      a2.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        ini
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END BOT 3 #####
##### Bot 4 Configuration #####
NICK         BackDoor
USERFILE      a3.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        back
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END BOT 4 #####
##### Bot 5 Configuration #####
NICK         nora
USERFILE      a4.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        nora
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END BOT 5 #####
##### Bot 6 Configuration #####
NICK          fasha
USERFILE      a5.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        fasha
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END BOT 6 #####
##### Bot 7 Configuration #####
NICK          Ladyana
USERFILE      a6.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        intan
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END BOT 7 #####
##### Bot 8 Configuration #####
NICK          Mata
USERFILE      a7.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        mata
IRCNAME      Emech By skyline
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END BOT 8 #####
##### Bot 9 Configuration #####
NICK          fauzana
USERFILE      a8.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        fara
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END BOT 9 #####
##### Bot 10 Configuration #####
NICK          BrainWash
USERFILE      a9.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        br
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END BOT 10 #####
##### Bot 11 Configuration #####
NICK          spyware
USERFILE      a10.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        spy
IRCNAME      Emech By spy
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END Bot 11 #####
##### Bot 12 Configuration #####
NICK          luna
USERFILE      a11.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        luna
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END Bot 12  #####
##### Bot 13 Configuration #####
NICK          ustazah
USERFILE      a12.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        ustazah
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END Bot 13 Configuration #####
##### Bot 14 Configuration #####
NICK          farida
USERFILE      a13.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        maria
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END Bot 14  #####
##### Bot 15 Configuration #####
NICK          linda
USERFILE      a14.users  # No two bots can have the same user file.
CMDCHAR      `
LOGIN        linda
IRCNAME      Emech By shah
MODES        +i-ws
VIRTUAL      fgfg.pl
#NOSEEN

HASONOTICE
TOG CC        1
TOG CLOAK      1
TOG SPY        1
SET OPMODES    6
SET BANMODES  6
SET CTIMEOUT  90
SET CDELAY    30

CHANNEL        #shah
TOG PUB        1
TOG MASS      1
TOG SHIT      1
TOG PROT      1
TOG ENFM      0
SET MDL        7
SET MKL        7
SET MBL        7
SET MPL        1
##### END Bot 15 Configuration #####

6.  ./genuser

7.  ./mech 

8. -End-