CedArctic / ducky2python

Convert DuckyScript (USB Rubber Ducky) to Python Applications :snake:
https://cedarctic.github.io/ducky2python
GNU Affero General Public License v3.0
120 stars 34 forks source link

A little issue with REPEAT command #2

Closed a-g-n-i-v-a closed 4 years ago

a-g-n-i-v-a commented 4 years ago

I noticed some problem with the REPEAT command. The for loop in Line #76 is creating problem. I am just reporting this issue.

I just changed it to for i in range(int(line[7:]) - 1):

And it is working fine, AFAIK. I think the range was missing and there was an invalid addition of int and str. Please fix it, as this is present in the ducky2python as well

CedArctic commented 4 years ago

@a-g-n-i-v-a thank you for pointing this out! I'll fix it right away.