Commit a9b9f054 authored by Thomas Pointhuber's avatar Thomas Pointhuber

Rev 7

parent e557cb1b
## Connect to badge
```
$ miniterm.py /dev/ttyUSB0 115200
```
## Remove paradoxis ransomware
Connect to tty using usb and press Ctrl+C, then enter the following commands:
```
import badge, appglue
badge.nvs_set_str('boot','splash','splash')
appglue.home()
```
## Update and test app with real virus
```
import badge, appglue, wifi, woezel
wifi.init()
woezel.install('virus')
woezel.install('another_hack_simulator')
woezel.install('ascii_porn')
woezel.install('devlol_antivirus')
appglue.start_app('devlol_antivirus')
```
import os, appglue, dialogs
known_signatures = ['ascii_porn', 'the_legend_of_zelda', 'internship', '1p0rn', 'another_hack_simulator']
known_signatures = ['ascii_porn', 'the_legend_of_zelda', 'internship', '1p0rn', 'another_hack_simulator', 'Internship']
known_src_signatures = ['install(\'Internship\')', '92.222.19.24', 'paradoxis.nl', 'ransom_', 'heldhostage!', 'virus']
def uninstall_ransomware(program):
ok = dialogs.prompt_boolean('Do you want to remove: %s?' % program)
if ok:
if dialogs.prompt_boolean('Do you want to remove: %s?' % program):
path = '/lib/' + program
for files in os.listdir(path):
os.remove(path + "/" + files)
......@@ -49,7 +47,7 @@ def remove_by_known_src():
removed_viruses = 0
for program in installed_software:
if program == 'ransomware_decrypter': # we don't want to delete ourself
if program == 'devlol_antivirus': # we don't want to delete ourself
continue
path = '/lib/' + program
......@@ -67,7 +65,8 @@ viruscount += remove_by_known_src() # signature (code) based
if viruscount != 0:
dialogs.notice('{} virus removed'.format(viruscount), 'Ransomware Remover')
# TODO: reinstall all software, if a virus was found
if dialogs.prompt_boolean('It\'s recommended to reinstall all apps when a virus was found'):
appglue.start_app('update_all')
else:
dialogs.notice('no virus removed', 'Ransomware Remover')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment