The Act created three new offences:
• Unauthorised access to computer material :
This is the lowest level of offence. It includes gaining access to a system owned by someone else and taking a look at the data it contains. This is an offence even if no damage is done, and no files are deleted or changed. The very act of accessing material without authorisation is illegal.
This offence carries a penalty of imprisonment up to six months and/or a fine.
• Unauthorised access with intent to commit or facilitate commission of further offences :
This builds on the previous offence. The key here is the addition of ‘intent to commit...further offences’. It includes guessing or stealing a password, and using that to access, say another person’s on-line bank account and transferring their money to another account.
For this offence the penalty is up to five years’ imprisonment and/or a fine.
• Unauthorised modification of computer material :
This could include deleting files, changing the desktop set-up or introducing viruses with the intent to impair the operation of a computer, or access to programs and data. The word ‘intent’ means it has to be done deliberately, rather than someone deleting files by mistake. This also includes using a computer to damage other computers , even though the computer used to do this is itself not modified in any way. This offence carries a penalty of up to five years and/or a fine.
From what you have described there is no clear offence in creating the code described, the offence would occour at the moment that code was executed and used to gain unauthorised access to another system. The offender in this case would be the person responcible for the execution of that code, not the person who orignially wrote it. Up untill now most cases have involved virus writers or other creators of 'malware' both creating and executing the code involved leading to the conviction of the creator.
You *could* argue that while you wrote the code you never intended to use it outside of the development environment and that you had no control over the end use of that code.
Having said all that it's a very grey area and I wouldnt want to stand up in court and argue the point without some serious legal backup
