Editing Noisecode
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 21: | Line 21: | ||
</pre> | </pre> | ||
Noisesql is yet another bot in #noisebridge which knows all about MySQL | Noisesql is yet another bot in #noisebridge which knows all about MySQL. Fun things to ask it to do: | ||
<pre> | <pre> | ||
Line 27: | Line 27: | ||
noisesql: eval select cos(0) | noisesql: eval select cos(0) | ||
noisesql: eval select aes_encrypt('hocus', 'pocus') | noisesql: eval select aes_encrypt('hocus', 'pocus') | ||
</pre> | </pre> | ||
Line 41: | Line 40: | ||
noisejs: eval function f(x) { if(x>2) { return x*f(x-1); } else { return x; } }; print(f(5)); | noisejs: eval function f(x) { if(x>2) { return x*f(x-1); } else { return x; } }; print(f(5)); | ||
</pre> | </pre> | ||
Things people have tried to break the bots so far: | Things people have tried to break the bots so far: | ||
Line 51: | Line 48: | ||
* Modifying noisecode's internal objects using setattr/getattr. | * Modifying noisecode's internal objects using setattr/getattr. | ||
* Calling eval() in noisecode via InteractiveConsole and InteractiveInterpreter. | * Calling eval() in noisecode via InteractiveConsole and InteractiveInterpreter. | ||