mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-14 00:37:19 +00:00
Create teensy_gen.py
Python functions for Teensy ino_gen.py
This commit is contained in:
parent
2c74047300
commit
7c72b137cf
1 changed files with 15 additions and 0 deletions
15
src/teensy/teensy_gen.py
Normal file
15
src/teensy/teensy_gen.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
# teensy_gen Functions
|
||||
|
||||
def check_input(orig_value, user_value):
|
||||
if ( user_value == '' ):
|
||||
print 'Keeping orginal value'
|
||||
return (orig_value)
|
||||
else:
|
||||
print 'Value changed from - '+orig_value+' to '+user_value
|
||||
return (user_value)
|
||||
|
||||
def ino_print_gen(text_to_include): # Define ino_print_gen function taking the text to be formatted for the ino file.
|
||||
return(' Keyboard.println(\"'+text_to_include+'\");') # Return the formatted text for the ino file.
|
||||
|
||||
def cmd_at_run_gen(cmd_for_run, env_varib, file_to_run): # Define cmd_at_run_gen function taking the text to be formatted into the CommandAtRunBar command for the ino file.
|
||||
return(' CommandAtRunBar(\"'+cmd_for_run+' '+env_varib+'\\'+file_to_run+'\");') # Return the formatted text for the ino file.
|
Loading…
Reference in a new issue