What addon to eggdrop can do that? the forum is phpbb but in my case i want it for vbulletin.
The command is custom too like this:
Code: Select all
/msg FORUMNAME "YOUR_FORUM_USERNAME" "YOUR_FORUM_PASSWORD"
Thank you for your help.
Code: Select all
/msg FORUMNAME "YOUR_FORUM_USERNAME" "YOUR_FORUM_PASSWORD"
Code: Select all
/MSG botnick site_name site_pass
Code: Select all
package require mysqltcl 3.05
namespace eval reqs {
namespace eval sett {
#START SETTINGS
variable req_chan "#YOUR_CHAN"
#DB CONNECTION
variable db_host "DB_HOST"
variable db_port "3306"
variable db_username "DB_USER"
variable db_password "DB_PASS"
variable db_name "DB_NAME"
#CHANNEL USER TABLE
variable db_table "TABLE_NAME"
variable db_user "USERNAME_FIELD"
variable db_pass "MD5_PASSWORDED_FIELD"
#BINDS
bind MSGM -|- "*" reqs::user_add_voice::voice_add_user
#END SETTINGS NAMESPACE
}
# SCRIPT STARTS
namespace eval user_add_voice {
proc voice_add_user {nick uhost handle text} {
set check_nick [lindex $text 0]
set get_pass [lindex $text 1]
set check_pass [md5 $get_pass]
set find_it [::mysql::connect -host $reqs::sett::db_host -port $reqs::sett::db_port -user $reqs::sett::db_username -password $reqs::sett::db_password -db $reqs::sett::db_name];
set it_find [::mysql::sel $find_it "SELECT $reqs::sett::db_user,$reqs::sett::db_pass FROM $reqs::sett::db_table WHERE $reqs::sett::db_user = '$check_nick' AND $reqs::sett::db_pass = '$check_pass'" -flatlist];
::mysql::endquery $find_it
::mysql::close $find_it
if {$it_find == ""} {putquick "NOTICE $nick :invalid login";return} else {
set valid_nick [lindex $it_find 0]
set valid_pass [lindex $it_find 1]
if {![isvoice $nick $reqs::sett::req_chan] && $check_nick == "$valid_nick" && $check_pass == "$valid_pass"} {
putquick "MODE $reqs::sett::req_chan +v $nick"
putquick "NOTICE $nick :thanks for logging in.."
} else {
return
}
}
}
}
#END NAMESPACE
}
danswano wrote:I'm sorry dude but i'm not that pro in eggdrop, where do i paste those settings and do i need additional tcl? Thanks.
Code: Select all
#DB CONNECTION
variable db_host "DB_HOST"
variable db_port "3306"
variable db_username "DB_USER"
variable db_password "DB_PASS"
variable db_name "DB_NAME"
#CHANNEL USER TABLE
variable db_table "TABLE_NAME"
variable db_nick "USERNAME_FIELD"
variable db_pass "MD5_PASSWORDED_FIELD"
Code: Select all
if {[catch {source scripts/vb-script.tcl} err]} {putlog "Error while loading vb-script.tcl: $err"} else {putlog "vb-script.tcl loaded without errors"}
when i loaded the scripts in the eggdrop,conf like this:Error while loading vb-script.tcl: missing close-brace
Code: Select all
source scripts/vb-script.tcl
[13:03:13] missing close-brace
while executing
"namespace eval reqs {
namespace eval set {
#START SETTINGS
variable req_chan "#chan"
#DB CONNECTION
variable db_host "localhost"
variable db_po..."
(file "scripts/vb-script.tcl" line 3)
invoked from within
"source scripts/vb-script.tcl"
(file "eggdrop.conf" line 219)
[13:03:13] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Code: Select all
[02:16pm] * doggo sets mode: +h NZB-Bot`
[02:17pm] -> *NZB-Bot`* doggo PiKEYs < wrong pass!>
[02:17pm] -NZB-Bot`- invalid login
[02:17pm] -> *NZB-Bot`* doggo PiKEY <correct pass>
[02:17pm] * NZB-Bot` sets mode: +v doggo
[02:17pm] -NZB-Bot`- thanks for logging in..
Code: Select all
[14:22] Rehashing ...
[14:22] main_conf.conf loaded without errors
[14:22] egghttp.tcl API v1.1.0 by strikelight now loaded.
[14:22] egghttp.tcl loaded without errors
[14:22] alltools.tcl loaded without errors
[14:22] action.fix.tcl loaded without errors
[14:22] vb_script.tcl loaded without errors
[14:22] Listening at telnet port ******** (all).
[14:22] Userfile loaded, unpacking...
We use a double md5 hash with a salt. Without the salt its moderately hard to get a value that works for the password.
something like md5(md5(password)salt)
Code: Select all
package require mysqltcl 3.05
namespace eval reqs {
namespace eval sett {
#START SETTINGS
variable req_chan "#YOUR_CHAN"
#DB CONNECTION
variable db_host "DB_HOST"
variable db_port "3306"
variable db_username "DB_USER"
variable db_password "DB_PASSWORD"
variable db_name "DB_NAME"
#CHANNEL USER TABLE
variable db_table "TABLE_NAME"
variable db_user "USERNAME_FIELD"
variable db_email "EMAIL_FIELD"
#BINDS
bind MSGM -|- "*" reqs::user_add_voice::voice_add_user
#END SETTINGS NAMESPACE
}
# SCRIPT STARTS
namespace eval user_add_voice {
proc voice_add_user {nick uhost handle text} {
set check_nick [lindex $text 0]
set check_email [lindex $text 1]
set find_it [::mysql::connect -host $reqs::sett::db_host -port $reqs::sett::db_port -user $reqs::sett::db_username -password $reqs::sett::db_password -db $reqs::sett::db_name];
set it_find [::mysql::sel $find_it "SELECT $reqs::sett::db_user,$reqs::sett::db_email FROM $reqs::sett::db_table WHERE $reqs::sett::db_user = '$check_nick' AND $reqs::sett::db_email = '$check_email'" -flatlist];
::mysql::endquery $find_it
::mysql::close $find_it
if {$it_find == ""} {putquick "NOTICE $nick :invalid login";return} else {
set valid_nick [lindex $it_find 0]
set valid_email [lindex $it_find 1]
if {![isvoice $nick $reqs::sett::req_chan] && $check_nick == "$valid_nick" && $check_email == "$valid_email"} {
putquick "MODE $reqs::sett::req_chan +v $nick"
putquick "NOTICE $nick :thanks for logging in.."
} else {
return
}
}
}
}
#END NAMESPACE
}
Code: Select all
– md5($pass.$salt)
– md5($salt.$pass)
– md5($salt.md5($pass))
– md5($salt.$pass.$salt)
– md5($salt.'–'.md5($pass))
– md5(md5($salt).$pass)
– md5(md5($salt).md5($pass))
– md5(md5($pass).$salt)
– md5(md5($pass).md5($salt))
– md5(md5($username.$pass).$salt)
– md5($salt.$pass.$username)
– md5($salt.md5($salt.$pass))
– md5($salt.md5($pass.$salt))
– md5($salt.md5($pass).$salt)
– md5($username.md5($pass).$salt)