Bitcoin Forum
December 09, 2016, 03:36:17 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [BOUNTY] 0.9BTC for a PHP IRC bot  (Read 1262 times)
mcorlett
Donator
Sr. Member
*
Offline Offline

Activity: 308



View Profile
February 15, 2012, 06:37:35 PM
 #1

I'd like a PHP script that does the following (in chronological order):
  • Connects to freenode (bonus points for SSL!)
  • Joins the #bitcoin-otc channel
  • Authenticates with gribble (feel free to use exec() in order to interface with GPG)
  • Rates a user
  • Peacefully disconnects from the network

There are tons of these IRC bot scripts, you just need to repurpose one of them to do what I ask.

1481297777
Hero Member
*
Offline Offline

Posts: 1481297777

View Profile Personal Message (Offline)

Ignore
1481297777
Reply with quote  #2

1481297777
Report to moderator
1481297777
Hero Member
*
Offline Offline

Posts: 1481297777

View Profile Personal Message (Offline)

Ignore
1481297777
Reply with quote  #2

1481297777
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481297777
Hero Member
*
Offline Offline

Posts: 1481297777

View Profile Personal Message (Offline)

Ignore
1481297777
Reply with quote  #2

1481297777
Report to moderator
1481297777
Hero Member
*
Offline Offline

Posts: 1481297777

View Profile Personal Message (Offline)

Ignore
1481297777
Reply with quote  #2

1481297777
Report to moderator
1481297777
Hero Member
*
Offline Offline

Posts: 1481297777

View Profile Personal Message (Offline)

Ignore
1481297777
Reply with quote  #2

1481297777
Report to moderator
btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW
February 15, 2012, 06:50:42 PM
 #2

There are tons of these IRC bot scripts, you just need to repurpose one of them to do what I ask.
There are?  When I needed some IRC automation code in PHP a while back, I couldn't find anything worth looking twice at.  So I rolled my own code.

I could do this for you, but It'd be significantly more than 0.9 BTC.

Out of curiosity, what are the exact steps to authenticate with gribble and rate the user?

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
mcorlett
Donator
Sr. Member
*
Offline Offline

Activity: 308



View Profile
February 15, 2012, 07:07:13 PM
 #3

Out of curiosity, what are the exact steps to authenticate with gribble and rate the user?
Message asking for a challenge string:
Code:
/msg gribble ;;gpg eauth mcorlett
Result:
Quote
Request successful for user mcorlett, hostmask mcorlett!~milton@unaffiliated/mcorlett. Get your encrypted OTP from http://bitcoin-otc.com/otps/17A99445F6DE80ED

Decrypt the one time password:
Code:
wget -O - http://bitcoin-otc.com/otps/17A99445F6DE80ED | gpg --decrypt --passphrase <private key passphrase>
Result:
Quote
You need a passphrase to unlock the secret key for
user: "Milton Corlett <milton.corlett@gmail.com>"
4096-bit RSA key, ID F6DE80ED, created 2011-12-18 (main key ID A88CD64E)

gpg: encrypted with 4096-bit RSA key, ID F6DE80ED, created 2011-12-18
      "Milton Corlett <milton.corlett@gmail.com>"
freenode:#bitcoin-otc:daf52608da5c293e733e4258b12949e0f6f245f73f3c2f3ec08d144f

Now you give it the decrypted OTP back to verify your identity:
Code:
/msg gribble ;;gpg everify freenode:#bitcoin-otc:daf52608da5c293e733e4258b12949e0f6f245f73f3c2f3ec08d144f
Result:
Quote
You are now authenticated for user mcorlett with key 17A99445F6DE80ED

Finally, rate the user:
Code:
/msg gribble ;;rate <nick> <rating> [<notes>]
Output:
Quote
Rating entry successful. Your rating of 1 for user <nick> has been recorded.

I make it sound like a lot of work, but that's because of my thoroughness. It's only 15 seconds or so doing it by hand if you know what you're doing.

I'll probably just make it myself if I don't get any offers. I was hoping to avoid messing with sockets, but it's a learning experience none the less. Thanks.

btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW
February 15, 2012, 07:34:13 PM
 #4

Are you willing to drop 3 BTC on it?

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
mcorlett
Donator
Sr. Member
*
Offline Offline

Activity: 308



View Profile
February 15, 2012, 07:37:19 PM
 #5

Are you willing to drop 3 BTC on it?
I'll let you know if I haven't found someone else or made it myself.

Thanks.

btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW
February 15, 2012, 08:56:38 PM
 #6

Are you willing to drop 3 BTC on it?
I'll let you know if I haven't found someone else or made it myself.

Thanks.
Sure.  Or if you want, I can share my IRC class/object with you (for a donation of course Tongue) and all you would have to do is add the part to authenticate with gribble and send the rating.

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
stcupp
Full Member
***
Offline Offline

Activity: 196


View Profile
February 15, 2012, 08:58:22 PM
 #7

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1817&lngWId=8

This is a very simple one that i found years ago and have used for many projects very easy to configure and add commands and such and very simple coding

mcorlett
Donator
Sr. Member
*
Offline Offline

Activity: 308



View Profile
February 16, 2012, 10:11:12 PM
 #8

I made one in Python instead, easy!

Thanks.

btc_artist
Full Member
***
Offline Offline

Activity: 154


Bitcoin!


View Profile WWW
February 16, 2012, 10:55:33 PM
 #9

Good deal. Smiley

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!