Posted 09 July 2012 - 04:17 PM
Hello,
I just started playing tekkit and searched up all kinds of tutorials on youtube for account/password locks and other stuff,
now I never programmed in my life before and I just copied the code of some kind of Brute force attack from a video,
It works to open easy comination locks, but as it is trying all the possibilities it:
- Doesn't stop when the doors open – hard to code this?
- Doesn't count the possibillities tried,
- Doens't print the possibillities tried..
I'd like to know how to let it at least print all colour combinations it tried so i can see the last ones, when i heared the doors open/close.
For now I'm using lamps with each colour and try to see the combination when the doors open…
I could ofcourse change the delay to have more time but that would make it go very slow for some combinations.
Here's the code I have so far:
========================================
function delay(s)
os.startTimer(s)
while true do
event, param1 = os.pullEvent()
if event == "timer" then break end
end
end
for i=1, 255, 1 do
redstone.setBundledOutput("back", i)
delay(0.5)
end
======================================
Again, I just copied this, I have almost no idea of what actually happens here….
Could someone help me and/or give me feedback on how I did my first post here?
Thnxies :)/>/>
P.S.
I'm not trying to break in somebody's house, I'm just trying to understand all this code, which is new for me and I found this fun to do B)/>/>
I just started playing tekkit and searched up all kinds of tutorials on youtube for account/password locks and other stuff,
now I never programmed in my life before and I just copied the code of some kind of Brute force attack from a video,
It works to open easy comination locks, but as it is trying all the possibilities it:
- Doesn't stop when the doors open – hard to code this?
- Doesn't count the possibillities tried,
- Doens't print the possibillities tried..
I'd like to know how to let it at least print all colour combinations it tried so i can see the last ones, when i heared the doors open/close.
For now I'm using lamps with each colour and try to see the combination when the doors open…
I could ofcourse change the delay to have more time but that would make it go very slow for some combinations.
Here's the code I have so far:
========================================
function delay(s)
os.startTimer(s)
while true do
event, param1 = os.pullEvent()
if event == "timer" then break end
end
end
for i=1, 255, 1 do
redstone.setBundledOutput("back", i)
delay(0.5)
end
======================================
Again, I just copied this, I have almost no idea of what actually happens here….
Could someone help me and/or give me feedback on how I did my first post here?
Thnxies :)/>/>
P.S.
I'm not trying to break in somebody's house, I'm just trying to understand all this code, which is new for me and I found this fun to do B)/>/>