Last active
August 22, 2017 16:58
-
-
Save ds84182/66d32cab22f5c351d8d6acfa438bff4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'raja.dart' deferred as rajascript; | |
void main() { | |
final raja = new File(".raja_was_here"); | |
if (raja.existsSync()) { | |
// Raja Was Here, load another script! | |
raja.deleteSync(); | |
rajascript.loadLibrary().then((_) => rajascript.run()); | |
} else { | |
print("Did you know you can run Dart from HTTP URLs?"); | |
print("Always remember to be safe when running random scripts online!"); | |
print("It's the same as downloading a random EXE and running it!"); | |
print("But don't worry, this script is fine!"); | |
print("We haven't done anything to your computer. Don't worry."); | |
raja.writeAsStringSync("Hello, this is Raja you computer has a virus please pay us \$300 to remove OK?"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
void run() { | |
print("SIR DONT WORRY"); | |
print("HELLO THIS IS RAJA YOU COMPUTER HAS VIRUS PLEASE PAY \$300 TO REMOVE OK?"); | |
print("WE ACCEPT VISA AND MASTERPAL"); | |
print("YOU ARE A ${Platform.operatingSystem.toUpperCase()}"); | |
if (Platform.isWindows) { | |
print("Please RDP to localhost:80"); | |
print("Your ${Platform.operatingSystem.toUpperCase()} is corrupt at ${Platform.localHostname.toUpperCase()}, please reinstall your operating system toll free at these following telephone numbers:"); | |
print(""" | |
\tAustralia: +61-3-8652-1453 | |
\tNew Zealand: +64-9-886-0565 | |
\tUK: +44-11-7325-7425 | |
\tUSA: +1-760-706-7425 | |
"""); | |
print("Thank you for calling please come again"); | |
} else { | |
print(""); | |
print("* HANGS UP"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment