Please login or register.

BnetWeb BnetWeb BnetWeb BnetWeb BnetWeb BnetWeb BnetWeb BnetWeb BnetWeb

Author Topic: Eval Problem  (Read 353 times)

0 Members and 1 Guest are viewing this topic.

Offline Chriso

  • MirageBot Developer
  • Addict
  • ******
  • Posts: 185
  • Funds: 0.00
  • Thanked 28 times
    • Make Payment
    • BnetDev
Eval Problem
« on: March 03, 2010, 07:26:28 PM »
There has been talk of users being able to shutdown people's systems using the eval command. This has been fixed in 9.5.2004, PLEASE UPDATE!

The exploit involved CreateObject() which has been patched.
  • Chriso

Offline aknaip

  • Hero Member
  • *******
  • Posts: 1,975
  • Funds: 44.73
  • Thanked 288 times
    • Make Payment
Re: Eval Problem
« Reply #1 on: March 03, 2010, 09:31:31 PM »
Maybe you shouldn't put an eval on your bot...?
Follow members gave a thank to your post:

Offline Chriso

  • MirageBot Developer
  • Addict
  • ******
  • Posts: 185
  • Funds: 0.00
  • Thanked 28 times
    • Make Payment
    • BnetDev
Re: Eval Problem
« Reply #2 on: March 03, 2010, 09:56:27 PM »
A lot of people from the StealthBot community requested it when they switched to MirageBot.

I made a few changes which include:
- UseSafeSubset: ON
- Checks for various phrases that are not mathematical in nature
- Eval is now available to users in the 'God' rank (highest)
  • Chriso

Offline aknaip

  • Hero Member
  • *******
  • Posts: 1,975
  • Funds: 44.73
  • Thanked 288 times
    • Make Payment
Re: Eval Problem
« Reply #3 on: March 03, 2010, 10:10:09 PM »
Stealthbot users are generally inept.  What you should do is implement the commands wolfram and google.  I wrote a plugin for asgard3 that simply makes http requests with a few get parameters, parses the DOM and pulls out the result.  Like so:

Quote
[22:06:52] <x0.pianka> ?wolfram 2 + 2
[22:06:53] <piankachu> Wolfram: 4

[22:07:31] <x0.pianka> ?wolfram differentiate x^4 + 5*x^2 + 99
[22:07:34] <piankachu> Wolfram: d/dx(x^4+5 x^2+99) = 4 x^3+10 x

[22:08:00] <x0.pianka> ?wolfram distance from pluto to the sun
[22:08:03] <piankachu> Wolfram: 31.63 AU  (astronomical units)

[22:09:42] <x0.pianka> ?wolfram size of texas in square inches
[22:09:46] <piankachu> Wolfram: 1.05x10^15 in^2  (square inches)

[22:10:12] <x0.pianka> ?wolfram birthday of barack obama
[22:10:14] <piankachu> Wolfram: Friday, August 4, 1961

Did I mention that I'm awesome?  Oh ya, can't forget this either:

Quote
[22:10:38] <x0.pianka> ?twitter miley
[22:10:39] <piankachu> Twitter: hey i got 2 go my boyfriend is going 2 be chatting it is my turn 2 show my stuff.

My bot does calculus, what does your bot do? ;)

Offline Chriso

  • MirageBot Developer
  • Addict
  • ******
  • Posts: 185
  • Funds: 0.00
  • Thanked 28 times
    • Make Payment
    • BnetDev
Re: Eval Problem
« Reply #4 on: March 03, 2010, 10:43:33 PM »
I was going to write something like that, just got lazy -.- lol

The first example is just using Google search right?
« Last Edit: March 03, 2010, 10:56:11 PM by Chriso »
  • Chriso

Offline aknaip

  • Hero Member
  • *******
  • Posts: 1,975
  • Funds: 44.73
  • Thanked 288 times
    • Make Payment
Re: Eval Problem
« Reply #5 on: March 04, 2010, 04:05:48 AM »
No that's all Wolfram Alpha which uses Stephen Wolfram's Mathematica software.  Despite it's poor name, this search engine is a far greater wealth of knowledge than Google.  Play around with it a bit; I only scratched the surface.  It can analyze DNA, track satellites and some even more wild things of which you probably haven't heard.

edit: I'll share the code if you want it.
« Last Edit: March 04, 2010, 04:17:11 AM by pianka »

Offline Chriso

  • MirageBot Developer
  • Addict
  • ******
  • Posts: 185
  • Funds: 0.00
  • Thanked 28 times
    • Make Payment
    • BnetDev
Re: Eval Problem
« Reply #6 on: March 04, 2010, 05:24:16 AM »
I'd never even heard of that before now. Looks interesting, I wouldn't mind taking a peek at the code.
  • Chriso

Offline aknaip

  • Hero Member
  • *******
  • Posts: 1,975
  • Funds: 44.73
  • Thanked 288 times
    • Make Payment
Re: Eval Problem
« Reply #7 on: March 04, 2010, 08:20:09 AM »
Send me an IM whenever you get a chance: Pope Pianka

edit: FYI, the code is in C#.  I am under the impression MirageBot is in VB6.  The principles are the same of course; you shouldn't have any problem making HTTP requests or parsing XML/HTML.
« Last Edit: March 04, 2010, 08:22:24 AM by pianka »

Offline Mesiah

  • Addict
  • *****
  • Posts: 135
  • Funds: 0.00
  • Thanked 11 times
    • Make Payment
Re: Eval Problem
« Reply #8 on: March 10, 2010, 12:38:14 PM »
@ pianka, the google parsing is sheer genius, i agree. But say 100 people downloaded your plugin, how many of those users do you think would actually put wolfram to practical use? Chances are, if people are doing calculus homework or whatever, they already have the resources they need... IMHO, thats the last thing a bot user OR developer is going to want..

Idk about you but, it tends to bother me when i spend time and energy programming something that hardly anybody uses.. Think of the USERS guys, the users!


Offline aknaip

  • Hero Member
  • *******
  • Posts: 1,975
  • Funds: 44.73
  • Thanked 288 times
    • Make Payment
Re: Eval Problem
« Reply #9 on: March 10, 2010, 01:07:24 PM »
Most people are morons anyways.  I didn't make the plugin for them; I made it for me because it's insanely useful.  If you can't find a use for it, you're probably wasting your time on the computer in general--or you know more than you humanly should.  It has many more uses than simply calculus, that was just one example.

It's far more useful than !pass blunt x0.pianka imho.

Offline Mesiah

  • Addict
  • *****
  • Posts: 135
  • Funds: 0.00
  • Thanked 11 times
    • Make Payment
Re: Eval Problem
« Reply #10 on: March 10, 2010, 04:39:00 PM »
this is true, but lets keep in mind my bot is designed to have a personality, and it truely appeals to its users even with those silly commands. but since you are a total genius/nerd, i respect teh wolfram. Since i am a newb/nerd, respect teh toke.

my apologies to chriso for going totally off topic.. this message is prepared to self destruct.

Offline aknaip

  • Hero Member
  • *******
  • Posts: 1,975
  • Funds: 44.73
  • Thanked 288 times
    • Make Payment
Re: Eval Problem
« Reply #11 on: March 11, 2010, 03:22:57 AM »
Here is an unedited use of the plugin, showing both its strengths and weaknesses.  Watch:

Quote
[03:14:40] <x0.pianka> ?google 2+2
[03:14:41] <x0.mike> Google: 2 + 2 = 4
[03:14:43] <x0.pianka> oh goody
[03:14:51] <x0.pianka> ?wolfram diameter of the earth
[03:14:54] <x0.mike> Wolfram: 7913.1 miles
[03:14:58] <x0.pianka> thats not bad
[03:15:08] <x0.pianka> ?wolfram average human speed
[03:15:10] <x0.mike> Wolfram: 10.44 m/s  (meters per second)
[03:15:10] <x0.mike> Wolfram: (Bolt\'s average speed in the 100-meter dash in the 2009 World Championships in Athletics in Berlin; the maximum speed achieved was 12.35 m/s, calculated from the 1.62 sec 20 m split.)

[03:15:26] KoB left the channel.
[03:15:34] <x0.pianka> ?wolfram 10.44 meter/s over 7913.1 miles
[03:15:37] <x0.mike> Wolfram: 1.2198x10^6 seconds
[03:16:44] <x0.pianka> interesting
[03:16:53] <x0.pianka> ?wolfram 1.2198x10^6 seconds to days
[03:16:54] <x0.mike> Wolfram: time
[03:16:58] <x0.pianka> ... no
[03:17:05] <x0.pianka> ?wolfram 1.2198x10^6 seconds
[03:17:06] <x0.mike> Wolfram: 1.2198x10^6 seconds from now | 5:07:24 am CDT  |  Thursday, March 25, 2010
[03:17:06] <x0.mike> Wolfram: 1.2198x10^6 seconds before now | 11:27:24 pm CST  |  Wednesday, February 24, 2010

[03:17:12] <x0.pianka> hmm
[03:17:36] <x0.pianka> ?wolfram 1219800 seconds to days
[03:17:38] <x0.mike> Wolfram: time
[03:17:43] <x0.pianka> fuck off
[03:17:46] <x0.pianka> ?wolfram 1219800 seconds
[03:17:48] <x0.mike> Wolfram: 1.22x10^6 seconds from now | 5:08:06 am CDT  |  Thursday, March 25, 2010
[03:17:48] <x0.mike> Wolfram: 1.22x10^6 seconds before now | 11:28:06 pm CST  |  Wednesday, February 24, 2010

[03:18:08] <x0.pianka> ?wolfram 1219800/(60*60*24)
[03:18:10] <x0.mike> Wolfram: 2033/144
[03:18:24] <x0.pianka> ?google 2033/144
[03:18:24] <x0.mike> Google: 2033 / 144 = 14.1180556
[03:18:27] <x0.pianka> that's not bad
[03:18:32] <x0.pianka> it would only take 14 days
[03:18:35] <x0.pianka> of non stop walking
[03:18:43] <x0.pianka> to walk across the diameter of our planet

I used this plugin to determine how long it would take the average human to walk across the diameter of our planet.

edit: I made my commands bold and the bot's responses in italics so it's easier to read.
« Last Edit: March 11, 2010, 03:37:32 AM by pianka »

Offline EKLIPz

  • **************
  • Addict
  • *****
  • Posts: 159
  • Funds: 85.72
  • Thanked 16 times
  • **************
    • Make Payment
    • E-Kreationz
Re: Eval Problem
« Reply #12 on: March 11, 2010, 05:50:16 PM »
Looks cool. Is this plugin for MB? And where can I get it?
  • ****************************************************************************************************
"Put the dick in their mouth, so I guess it's fuck what they say,
I'm high as a bitch like up-up-and-away, man I'll come down in a couple of days."
"The only place that success comes before work is inside the dictionary"


Offline aknaip

  • Hero Member
  • *******
  • Posts: 1,975
  • Funds: 44.73
  • Thanked 288 times
    • Make Payment
Re: Eval Problem
« Reply #13 on: March 12, 2010, 01:42:01 AM »
It's for Asgard3, actually.  I know there's something in the works for a newer version of Mirage, so I'm sure a plugin like this will emerge at some point.

Offline Scope

  • Founder
  • Hero Member
  • *******
  • Posts: 2,609
  • Funds: 0.58
  • Thanked 201 times
    • Make Payment
    • BnetWeb
Re: Eval Problem
« Reply #14 on: March 12, 2010, 06:56:31 PM »
It's for Asgard3, actually.  I know there's something in the works for a newer version of Mirage, so I'm sure a plugin like this will emerge at some point.

^^ I approve.
  • Scope@USEast, Scope.scope@SC2