Jump to content

Photo

screwing with pirates


209 replies to this topic

#1 2600problems OFFLINE  

2600problems

    Chopper Commander

  • 234 posts

Posted Tue Mar 28, 2017 6:04 PM

I've decided that the best way to fuck with pirates is to password protect the games that I make. so here's a small snippet of my code:

10 print "are you a pirate"

20 input a$

30 print "hello, my name is c64..., please give password

40 input a$

50 if a$=  1000 to 9000  (or brute forced) goto 80

60 if a$= 8145 or 99872 goto 90

70 goto 80

80 (loops)

90 (unlocks computer)

 

what I want to do is separate them into 2 different code batches. 1 to protect any games I make or upload to this site

2. to unlock it if needed. (I trust those I give the password to will not spread it over the internet)

 

currently in alpha stage

 



#2 fujidude OFFLINE  

fujidude

    River Patroller

  • 4,677 posts
  • Location:United States of America

Posted Tue Mar 28, 2017 9:43 PM

I'm (rather atypically) at a loss for words here at this moment.  :?:



#3 pirx OFFLINE  

pirx

    Moonsweeper

  • 371 posts
  • Location:Poland

Posted Wed Mar 29, 2017 1:40 AM

bloody pirates!!!



#4 Goochman OFFLINE  

Goochman

    Quadrunner

  • 6,821 posts
  • Moongates to the Past

Posted Wed Mar 29, 2017 5:54 AM

a6b018255b32a09e2be317dffb1ab250.jpg


Edited by Goochman, Wed Mar 29, 2017 5:54 AM.


#5 Rybags OFFLINE  

Rybags

    Quadrunner

  • 15,163 posts
  • Location:Australia

Posted Wed Mar 29, 2017 6:00 AM

If the password is in the program it'll be found in no time.  If you do fancy encryption it'll take seconds/minutes longer.

In the modern day, emulation and debugging means you can't hide much at all.

The way to go with a password would be to encrypt most of the program then have the password actually form most of the decryption key.

By doing that, it's not discoverable by any other way than actually getting it right.

 

Then again, brute force password hacking is easy with fast modern CPUs.



#6 Nukey Shay OFFLINE  

Nukey Shay

    Sheik Yerbouti

  • 21,662 posts
  • Location:The land of Gorch

Posted Wed Mar 29, 2017 6:18 AM

Exactly who is supposed to be pirating Atari Basic programs these days?

#7 Stewart_Pidd OFFLINE  

Stewart_Pidd

    Star Raider

  • 51 posts
  • Location:Corazón de Tejas

Posted Wed Mar 29, 2017 6:49 AM

Who would have known that my plans for world domination would be thwarted by a password subroutine in basic?



#8 zzip OFFLINE  

zzip

    Stargunner

  • 1,315 posts

Posted Wed Mar 29, 2017 8:03 AM

I've decided that the best way to fuck with pirates is to password protect the games that I make. so here's a small snippet of my code:

10 print "are you a pirate"

20 input a$

30 print "hello, my name is c64..., please give password

40 input a$

50 if a$=  1000 to 9000  (or brute forced) goto 80

60 if a$= 8145 or 99872 goto 90

70 goto 80

80 (loops)

90 (unlocks computer)

 

what I want to do is separate them into 2 different code batches. 1 to protect any games I make or upload to this site

2. to unlock it if needed. (I trust those I give the password to will not spread it over the internet)

 

currently in alpha stage

 

 

Add these lines for additional protection:

 

5 print "Please pry off the Break key with a screwdriver before continuing, then press any key to continue"

6 input $a



#9 Stephen OFFLINE  

Stephen

    Quadrunner

  • 6,446 posts
  • A8 Gear Head
  • Location:No longer in Crakron, Ohio

Posted Wed Mar 29, 2017 9:00 AM

I wouldn't worry too much about a strong password generator.  It's getting that damn pesky PEEK command in C64 BASIC to work.



#10 MrFish ONLINE  

MrFish

    River Patroller

  • 4,142 posts
  • Location:1010-1010

Posted Wed Mar 29, 2017 9:25 AM

Excellent, now you're down to only 2,599 problems!


Edited by MrFish, Wed Mar 29, 2017 10:16 AM.


#11 MrFish ONLINE  

MrFish

    River Patroller

  • 4,142 posts
  • Location:1010-1010

Posted Wed Mar 29, 2017 9:26 AM

5 print "Please pry off the Break key with a screwdriver before continuing, then press any key to continue"

6 input $a

 

Come on man, he's still in the "alpha" stage...



#12 tep392 OFFLINE  

tep392

    River Patroller

  • 2,760 posts
  • Location:Peoria, IL

Posted Wed Mar 29, 2017 11:40 AM

It might help if you add this.

 

5 REM IGNORE THE NEXT TEN LINES OF CODE. NOTHING TO SEE HERE.



#13 Stephen OFFLINE  

Stephen

    Quadrunner

  • 6,446 posts
  • A8 Gear Head
  • Location:No longer in Crakron, Ohio

Posted Wed Mar 29, 2017 12:31 PM

Perhaps it would be better to distribute the games to trusted individuals, if you get the source printed at Kinkos.



#14 CharlieChaplin OFFLINE  

CharlieChaplin

    River Patroller

  • 2,548 posts

Posted Wed Mar 29, 2017 12:37 PM

Control-3

Error 136

L.



#15 2600problems OFFLINE  

2600problems

    Chopper Commander

  • Topic Starter
  • 234 posts

Posted Wed Mar 29, 2017 2:19 PM

great answers, i'm laughing so hard right now



#16 2600problems OFFLINE  

2600problems

    Chopper Commander

  • Topic Starter
  • 234 posts

Posted Wed Mar 29, 2017 2:22 PM

I also did this for the BBC micro:

 

10 print "are you a dick?"

20 input a$

30 rem yes or no doesn't matter

40 if a$= "yes" goto 50

50 print "shutting down"

60 print "good, shutting down"



#17 Kyle22 OFFLINE  

Kyle22

    River Patroller

  • 3,105 posts
  • Location:McKees Rocks (Pittsburgh), PA

Posted Wed Mar 29, 2017 7:29 PM

Control-3

Error 136

L.

This actually worked for me on a particularly difficult BASIC program.  It shall remain nameless because of how I "re-used" some of the code I was able to unprotect.

 

It was a combination of rapid fire hitting break and Ctrl-3 and pressing System Reset here and there, but I finally got a READY prompt.  This disk had no DOS, it booted directly to the BASIC program, and all disk I/O was handled by the program.

 

Once I got READY, I had to save it, but no DOS was booted.  I had to use C:.  What a pain, but it worked.  Booted a DOS disk, loaded from C: then saved to D:

 

:)



#18 TMR OFFLINE  

TMR

    River Patroller

  • 3,358 posts
  • Beeping the horn on the data bus
  • Location:Leeds, U.K.

Posted Thu Mar 30, 2017 3:05 AM

what I want to do is separate them into 2 different code batches. 1 to protect any games I make or upload to this site
2. to unlock it if needed. (I trust those I give the password to will not spread it over the internet)


What stops the pirates from simply viewing the BASIC listing and spotting the password or removing the "protection"? There's nothing you can do as a BASIC programmer to obfuscate your program that a cracker - someone who usually has a lot of "in the field" machine code knowledge - can't undo and even if the program is compiled it doesn't take much picking around for someone with that skillset to find the password.

The bigger question that springs to mind though is why would you bother in the first place?! Even something that'd put up a fight from assembly language is pretty pointless because one password leak or weak algorythm later and everything is undone.

#19 fujidude OFFLINE  

fujidude

    River Patroller

  • 4,677 posts
  • Location:United States of America

Posted Thu Mar 30, 2017 9:25 AM

Guys.... um let's just indulge the enthusiasm without bothering with the wider scope of it  all.  I'm pretty sure there's a reason for it all.



#20 Gemintronic OFFLINE  

Gemintronic

    Jason S. - Lead Developer & CEO

  • 8,829 posts

Posted Thu Mar 30, 2017 9:57 AM

Actually, I wouldn't mind having something that I could check to make sure my game is running on actual AtariAge boards.  Be it 2600, 5200 or 7800.



#21 zzip OFFLINE  

zzip

    Stargunner

  • 1,315 posts

Posted Thu Mar 30, 2017 11:18 AM

Guys.... um let's just indulge the enthusiasm without bothering with the wider scope of it  all.  I'm pretty sure there's a reason for it all.

 

I don't think OP was actually serious, read his followups



#22 TMR OFFLINE  

TMR

    River Patroller

  • 3,358 posts
  • Beeping the horn on the data bus
  • Location:Leeds, U.K.

Posted Thu Mar 30, 2017 11:42 AM

Guys.... um let's just indulge the enthusiasm without bothering with the wider scope of it all. I'm pretty sure there's a reason for it all.


Okay, so who fancies explaining the reason behind "screwing with pirates" then...? Enthusiasm is fantastic, but piling all of that energy into something like this is akin to driving up a cul-de-sac in a rocket-powered car, it's going to end messily...

#23 fujidude OFFLINE  

fujidude

    River Patroller

  • 4,677 posts
  • Location:United States of America

Posted Thu Mar 30, 2017 4:08 PM

Okay... I'll just get it over with.  The OP has either started a humorous exercise in futility, or he's suffering from some kind of mental affliction.  In the 1st case, there's not much fun in pointing out the futility, as that kills the joke/humor.  In the second case, it's best not to tear down his grand ideas as he enthusiastically explores programming an Atari 8-bit, less he have some kind of mental episode or psychotic break.  ;-)


  • jhd likes this

#24 TMR OFFLINE  

TMR

    River Patroller

  • 3,358 posts
  • Beeping the horn on the data bus
  • Location:Leeds, U.K.

Posted Fri Mar 31, 2017 3:34 AM

The OP has either started a humorous exercise in futility, or he's suffering from some kind of mental affliction. In the 1st case, there's not much fun in pointing out the futility, as that kills the joke/humor.


Assuming there was something to kill in the first place...
 

In the second case, it's best not to tear down his grand ideas as he enthusiastically explores programming an Atari 8-bit, less he have some kind of mental episode or psychotic break. ;-)


If he's losing the plot that's going to happen sooner or later anyway, probably around the time he tries to use players from BASIC. But okay, i won't bother responding to his posts any more because i'm not going to waste time working out if he's being serious or not.

#25 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 12,634 posts
  • Location:United Kingdom

Posted Fri Mar 31, 2017 4:43 AM

It becomes clear why [sarcasm] and [irony] tags are always required on Internet forums.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users