MCPcopy Create free account

hub / github.com/PsycoStea/Pi-Zero-2W-Bad-USB / functions

Functions76 in github.com/PsycoStea/Pi-Zero-2W-Bad-USB

↓ 22 callersFunction_run
(text: str)
tests/test_parser.py:49
↓ 13 callersFunctionsafe_eval_math
Evaluate a numeric expression in a sandboxed way (no names, no calls).
run_payload.py:87
↓ 11 callersFunctionevaluate_condition
Evaluate ``<lhs> <op> <rhs>`` with original case preserved for strings.
run_payload.py:145
↓ 6 callersMethodwrite_report
(self, report: bytes)
run_payload.py:59
↓ 5 callersFunctionsend_hid
(engine: HIDEngine, mod: int, key: int, release: bool = True)
run_payload.py:209
↓ 5 callersFunctiontype_string
( engine: HIDEngine, text: str, keys: Dict[str, Tuple[int, int]], modifiers: Dict[str, int],
run_payload.py:216
↓ 4 callersFunction_env_float
(name: str, default: float)
monitor_and_run.py:38
↓ 4 callersFunctionforce_rebind
Bind the gadget back to the UDC controller.
monitor_and_run.py:140
↓ 4 callersFunctionforce_unbind
Unbind the gadget from the UDC (equivalent to physical disconnect).
monitor_and_run.py:132
↓ 3 callersFunction_collect_block
Return (content_lines, end_pc_at_closer). Raises ValueError if unmatched.
run_payload.py:309
↓ 3 callersFunction_safe_write
(path: str, value: str)
run_payload.py:177
↓ 3 callersFunctionparse_number
(val)
run_payload.py:101
↓ 3 callersFunctionsubstitute_vars
(text: str, variables: Dict[str, object])
run_payload.py:117
↓ 2 callersFunction_unquote
(s: str)
run_payload.py:138
↓ 2 callersFunction_write_udc
Write to the gadget's UDC file via the os.write syscall. Going through ``open(...).write("")`` does not actually invoke ``write(2)`` with zer
monitor_and_run.py:110
↓ 2 callersMethodclose
(self)
run_payload.py:63
↓ 2 callersFunctionled_on
()
run_payload.py:189
↓ 2 callersFunctionload_layout
Return ``(MODIFIERS, KEYS)`` for the named layout, e.g. ``"us"`` or ``"uk"``.
keymaps/__init__.py:17
↓ 2 callersMethodopen
(self)
run_payload.py:56
↓ 2 callersFunctionread_udc_state
(udc: str)
monitor_and_run.py:97
↓ 2 callersFunctionrun_ducky
(filename: str, engine: Optional[HIDEngine] = None)
run_payload.py:288
↓ 1 callersFunction_env_int
(name: str, default: int)
monitor_and_run.py:51
↓ 1 callersFunction_new_state
(engine: HIDEngine)
run_payload.py:262
↓ 1 callersFunction_switch_layout
(state: dict, layout_name: str)
run_payload.py:277
↓ 1 callersFunctionconfigure_logging
()
monitor_and_run.py:77
↓ 1 callersFunctionfind_udc
(retries: int = 30, delay: float = 1.0)
monitor_and_run.py:85
↓ 1 callersFunctionled_blink
(pattern, end_on: bool = True)
run_payload.py:197
↓ 1 callersFunctionled_off
()
run_payload.py:193
↓ 1 callersFunctionled_setup
()
run_payload.py:185
↓ 1 callersFunctionmain
(argv: List[str])
run_payload.py:648
↓ 1 callersFunctionmain
()
monitor_and_run.py:148
↓ 1 callersFunctionpress_combo
( engine: HIDEngine, tokens: List[str], keys: Dict[str, Tuple[int, int]], modifiers: Dict[str,
run_payload.py:242
↓ 1 callersFunctionprocess_lines
(lines: List[str], state: dict)
run_payload.py:327
↓ 1 callersFunctionsubstitute_defines
(line: str, defines: Dict[str, str])
run_payload.py:126
↓ 1 callersFunctionwait_for_configured
(udc: str)
monitor_and_run.py:105
Method__init__
(self, path: str = HID_DEVICE)
run_payload.py:52
Method__init__
(self)
tests/test_parser.py:30
Methodclose
(self)
tests/test_parser.py:39
Methodkey_reports
All non-empty (i.e. not key-release) reports.
tests/test_parser.py:44
Methodopen
(self)
tests/test_parser.py:33
Functionrepl
(match: "re.Match[str]")
run_payload.py:118
Methodtest_basic
(self)
tests/test_parser.py:63
Methodtest_ctrl_alt_del
(self)
tests/test_parser.py:343
Methodtest_delay_no_crash
(self)
tests/test_parser.py:352
Methodtest_float
(self)
tests/test_parser.py:76
Methodtest_hold_shift_capitalizes
(self)
tests/test_parser.py:269
Methodtest_if_false_runs_else_branch
(self)
tests/test_parser.py:167
Methodtest_if_true_runs_then_branch
(self)
tests/test_parser.py:152
Methodtest_inject_mod_applies_to_next_string
(self)
tests/test_parser.py:245
Methodtest_inject_mod_zero_releases
(self)
tests/test_parser.py:255
Methodtest_numeric
(self)
tests/test_parser.py:98
Methodtest_parens
(self)
tests/test_parser.py:69
Methodtest_random_bogus_no_keystrokes
(self)
tests/test_parser.py:236
Methodtest_random_letter_count
(self)
tests/test_parser.py:224
Methodtest_random_number_only_digits
(self)
tests/test_parser.py:229
Methodtest_rejects_attribute
(self)
tests/test_parser.py:83
Methodtest_rejects_call
(self)
tests/test_parser.py:87
Methodtest_rejects_name
(self)
tests/test_parser.py:79
Methodtest_rejects_string_constant
(self)
tests/test_parser.py:91
Methodtest_string_block_joins
(self)
tests/test_parser.py:318
Methodtest_string_compare_case_sensitive
(self)
tests/test_parser.py:180
Methodtest_string_inequality
(self)
tests/test_parser.py:114
Methodtest_string_literals_preserve_case
(self)
tests/test_parser.py:108
Methodtest_stringln_block_emits_enter_per_line
(self)
tests/test_parser.py:329
Methodtest_uk_at_uses_shift_apostrophe
(self)
tests/test_parser.py:289
Methodtest_uk_double_quote_uses_shift_2
(self)
tests/test_parser.py:298
Methodtest_unary
(self)
tests/test_parser.py:72
Methodtest_unknown_layout_keeps_default
(self)
tests/test_parser.py:307
Methodtest_us_at_uses_shift_2
(self)
tests/test_parser.py:283
Methodtest_var_assignment_and_use
(self)
tests/test_parser.py:120
Methodtest_var_compound_assignment
(self)
tests/test_parser.py:130
Methodtest_var_string_literal
(self)
tests/test_parser.py:140
Methodtest_while_counts
(self)
tests/test_parser.py:197
Methodtest_while_le_terminates
(self)
tests/test_parser.py:209
Methodtest_with_variables
(self)
tests/test_parser.py:104
Methodwrite_report
(self, report: bytes)
tests/test_parser.py:36