English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 08 September 2008, 12:14   #1
cosmiq
Junior Member
 
cosmiq's Avatar
 
Join Date: Apr 2002
Location: Holland
Age: 41
Posts: 314
Floppy disk Virus that stays in memory even after shutdown

Some years ago, people told me that there were virusses for amiga that stay resident, even after the Amiga was powered-off for a few seconds. I cannot believe that this is possible, so the question for all you ami guru's... is it possible??
cosmiq is offline  
Old 08 September 2008, 12:33   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Not possible. And before someone asks: clock battery ram can't be used for code
Toni Wilen is offline  
Old 08 September 2008, 12:43   #3
Rabbit80
Its hard being famous!
 
Rabbit80's Avatar
 
Join Date: Aug 2008
Location: Gateway to the dales, UK
Age: 43
Posts: 633
Quote:
Originally Posted by Toni Wilen View Post
Not possible. And before someone asks: clock battery ram can't be used for code
Exactly how long does the RAM retain its memory after power off? I remember that when using RAD: back when I had an A500 it would still be there after a power off for up to 20 seconds... I'm pretty sure that it would be possible to recover most of the contents of the RAM for up to a couple of minutes afterwards... There has been examples of this in recent months with encryption keys being recovered from RAM on PC's for up to 10 mins after power off although to do this the RAM chips need cooling (ie with liquid compressed air)

http://news.cnet.com/8301-1009_3-10003167-83.html
Rabbit80 is offline  
Old 08 September 2008, 13:00   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Quote:
Originally Posted by Rabbit80 View Post
Exactly how long does the RAM retain its memory after power off? I remember that when using RAD: back when I had an A500 it would still be there after a power off for up to 20 seconds...
I read long time ago that few seconds is max for usual DRAM chips (and 5s power off has always caused execbase rebuild on my A500 = possible virus is gone) but perhaps it depends on chip types or power supply model or mobo revision or something like size of filter capacitors?
Toni Wilen is offline  
Old 08 September 2008, 13:08   #5
Rabbit80
Its hard being famous!
 
Rabbit80's Avatar
 
Join Date: Aug 2008
Location: Gateway to the dales, UK
Age: 43
Posts: 633
Quote:
Originally Posted by cosmiq View Post
... even after the Amiga was powered-off for a few seconds. I cannot believe that this is possible, so the question for all you ami guru's... is it possible??
Since the question was whether it would be possible for a few seconds - I would say yes - but if you power down for 20-30 seconds you should be OK...
Rabbit80 is offline  
Old 08 September 2008, 13:24   #6
cosmiq
Junior Member
 
cosmiq's Avatar
 
Join Date: Apr 2002
Location: Holland
Age: 41
Posts: 314
I always thought that memory is blank instantly when power is cut off. It would be interesting to test how long the memory is retained. Especially with virus-resident stuff in memory.
Thanks for the replies.
cosmiq is offline  
Old 08 September 2008, 15:10   #7
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
I'm thinking it doesn't really matter whether the RAM retains its contents for 1 millisecond or 1 hour.

A hard reset would go into configuring the RAM memory itself as well as other AutoConfig devices, and the Amiga OS Exec and other memory areas would be initialized properly. For the virus to activate it would have to be run in the first place which at that point isn't going to happen unless the Exec starts making wild jumps into uninitialized memory exactly where the virus still resides and could be activated properly. Simply having the virus in RAM isn't enough for it to spread.

This sort of reminds me of when I was a kid and one of the older guys at the local computer club told us in a dead serious voice (and we believed him) that viruses could spread between floppy disks if you pulled the metal covers back and held the disks close together

Last edited by Leffmann; 08 September 2008 at 15:19.
Leffmann is offline  
Old 08 September 2008, 15:44   #8
jmmijo
Junior Member
 
jmmijo's Avatar
 
Join Date: Jan 2002
Location: PDX
Age: 62
Posts: 2,395
Quote:
Originally Posted by Leffmann View Post
This sort of reminds me of when I was a kid and one of the older guys at the local computer club told us in a dead serious voice (and we believed him) that viruses could spread between floppy disks if you pulled the metal covers back and held the disks close together
So is this like when you shake a floppy diskette really hard you shift the bits on the magenetic surface
jmmijo is offline  
Old 08 September 2008, 16:52   #9
Rabbit80
Its hard being famous!
 
Rabbit80's Avatar
 
Join Date: Aug 2008
Location: Gateway to the dales, UK
Age: 43
Posts: 633
Quote:
Originally Posted by Leffmann View Post
I'm thinking it doesn't really matter whether the RAM retains its contents for 1 millisecond or 1 hour.

A hard reset would go into configuring the RAM memory itself as well as other AutoConfig devices, and the Amiga OS Exec and other memory areas would be initialized properly.
Maybe somebody could test this? I think I used to use statram - which I seem to remember could survive for quite some time and could survive a hard reset even... Maybe its my memory playing tricks (long term corruption - and a few cold resets after a few beers )?
Rabbit80 is offline  
Old 08 September 2008, 18:02   #10
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Quote:
Originally Posted by jmmijo View Post
So is this like when you shake a floppy diskette really hard you shift the bits on the magenetic surface
Yes, and even come loose and fall off onto the other disk! At least that's what I imagined

Quote:
Originally Posted by Rabbit80 View Post
Maybe somebody could test this? I think I used to use statram - which I seem to remember could survive for quite some time and could survive a hard reset even... Maybe its my memory playing tricks (long term corruption - and a few cold resets after a few beers )?
Do you mean that a mounted StatRam drive could sometimes remain mounted and usable after turning the Amiga off without you (or the startup-sequence) running the StatRam application? Or do you mean that you had to start StatRam up again and could then tell it to search the RAM and recover previous contents?

I never used StatRam but from what I understand it mounts a RAM drive for which it can search RAM and recover previous contents, am I right?
Leffmann is offline  
Old 09 September 2008, 00:31   #11
Overdoc
Commodore Collector
 
Join Date: Aug 2001
Location: Austria
Age: 53
Posts: 944
Ha, one of my A-500 cannot easily 'forget' it's code, which is somtimes quite annoying !
I remember the game 'Pinball WIzard' which had a soft-reset protection, and I have ot turn off this A-500 for at least!! half a minute before I can restart again without hearing the hahahaha sound and seeing the pinball table again...
But I'm not 100% sure, it might also have to do something with the psu, maybe some caps inside keep feeding the Amiga with power after shutoff ?
Overdoc is offline  
Old 09 September 2008, 01:04   #12
T_hairy_bootson
Workbitch 1.3
 
T_hairy_bootson's Avatar
 
Join Date: Oct 2001
Location: Melbourne, Australia
Age: 46
Posts: 2,084
Quote:
Originally Posted by Overdoc View Post
Ha, one of my A-500 cannot easily 'forget' it's code, which is somtimes quite annoying !
I remember the game 'Pinball WIzard' which had a soft-reset protection, and I have ot turn off this A-500 for at least!! half a minute before I can restart again without hearing the hahahaha sound and seeing the pinball table again...
But I'm not 100% sure, it might also have to do something with the psu, maybe some caps inside keep feeding the Amiga with power after shutoff ?
That was especially annoying on the A1000 had to re kickstart the machine. Scared the crap out of me the first time.
T_hairy_bootson is offline  
Old 09 September 2008, 09:30   #13
Rabbit80
Its hard being famous!
 
Rabbit80's Avatar
 
Join Date: Aug 2008
Location: Gateway to the dales, UK
Age: 43
Posts: 633
Quote:
Originally Posted by Leffmann View Post
Do you mean that a mounted StatRam drive could sometimes remain mounted and usable after turning the Amiga off without you (or the startup-sequence) running the StatRam application? Or do you mean that you had to start StatRam up again and could then tell it to search the RAM and recover previous contents?

I never used StatRam but from what I understand it mounts a RAM drive for which it can search RAM and recover previous contents, am I right?
I remember it sometimes annoying me because I had to power down for 20-30 seconds for it to clear - I used to boot from it and could do so after a power down for over 10 seconds....

Dont know if it makes any difference but it was an A500+ with a 1Mb Chip expansion and 8Mb Fast RAM on a GVP hard disk.
Rabbit80 is offline  
Old 10 September 2008, 14:22   #14
SkippyAR
 
Posts: n/a
Lightbulb mEGA dEMO

Quote:
Originally Posted by cosmiq View Post
Some years ago, people told me that there were virusses for amiga that stay resident, even after the Amiga was powered-off for a few seconds. I cannot believe that this is possible, so the question for all you ami guru's... is it possible??

You can use a 68000 coding instruction called TRAP and create a TRAP routine returning RTE on a LOOP and insert it into the SOFT BOOT of the Amiga's RESET.

What this means is, when you soft or even hard reset your computer it executes the TRAP routine and stays 'stuck' inside the looped routine not allow the computer to properly complete its reset cycle.

I've coded one years ago, you will also find it in megademos, demos, crackros, etc. It can be really annoying to flush out. **When Datel released the Action Amiga Replay III cartridge they included new code to release and flush out any COLD CAPTURE routines thus stopping this from happening.

An example is VISION's MEGADEMO II for the a500, when the computer is soft/hard rebooted it JMP (jumps) straight back into a TRAP LOOP routine playing the demo's intro.

** TRAP INTERRUPT ROUTINES.

Obviously this can be exploited and misused in the form of virii or just plain annoyance.
 
Old 10 September 2008, 14:46   #15
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Quote:
Originally Posted by SkippyAR View Post
You can use a 68000 coding instruction called TRAP and create a TRAP routine returning RTE on a LOOP and insert it into the SOFT BOOT of the Amiga's RESET.
What does this have to do with reset proof programs? (and what exactly is it even supposed to mean? )

Just set Cold Capture (or other similar exec reset vectors) and its done. Note that non-setpatched KS 1.3 or older always rebuilds execbase if 1MB or larger chip ram due to exec bug.
Toni Wilen is offline  
Old 10 September 2008, 15:14   #16
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by Toni Wilen View Post
What does this have to do with reset proof programs? (and what exactly is it even supposed to mean? )
You took the words right out of my mouth.
StingRay is offline  
Old 10 September 2008, 15:19   #17
Frog
Junior Member
 
Frog's Avatar
 
Join Date: Aug 2001
Location: France
Posts: 1,385
i remember too that when i used a RAD disk on A500, it took at least 10 seconds to be cleared after power off !
Frog is offline  
Old 10 September 2008, 15:37   #18
Mad-Matt
Longplayer
 
Mad-Matt's Avatar
 
Join Date: Jan 2005
Location: Lincoln / UK
Age: 44
Posts: 1,846
Send a message via ICQ to Mad-Matt Send a message via MSN to Mad-Matt
Joshua was a virus I remember having on my A600 more then once (school disk swapping - a virus haven ) It often seemed to survive a power cycle if not leaving off for more then 30 seconds or so. effect was big joshua mouse pointer, visable on kickstart screen to if i recall right.
Mad-Matt is offline  
Old 10 September 2008, 16:40   #19
SkippyAR
 
Posts: n/a
Quote:
Originally Posted by Toni Wilen View Post
What does this have to do with reset proof programs? (and what exactly is it even supposed to mean? )

Just set Cold Capture (or other similar exec reset vectors) and its done. Note that non-setpatched KS 1.3 or older always rebuilds execbase if 1MB or larger chip ram due to exec bug.

HUH?
 
Old 10 September 2008, 16:50   #20
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by SkippyAR View Post
HUH?
Trap instruction has nothing to do with patching Cold/CoolCapture vectors.
StingRay is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
A600 black screen (_RST stays low) demolition support.Hardware 15 24 July 2013 12:57
Virtual Memory or Memory Compactor Leandro Jardim support.Apps 2 29 May 2012 23:12
Blizzard Turbo Memory - SMD memory chips doesn't work sanjyuubi Hardware mods 5 26 May 2010 15:40
[68000 ASM] Move memory to memory AmigaBoy Coders. General 7 08 December 2009 08:16
Screen stays black in windowed mode with 32-bit desktop h121 support.WinUAE 4 24 August 2005 08:36

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:53.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.39870 seconds with 13 queries