Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-03-2010, 12:02 PM   #1
Wild Rat
Junior Member
Wild Rat began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: Amazon Kindle 3 WiFi+3G
Kindle - viruss-free flashdrive.

In the file ./lib/udev/bin/notifyusb :

Code:
#!/bin/sh 
if [ "$ACTION" = "add" ] ; then 
   /usr/bin/lipc-send-event -r 3 com.lab126.hal usbPlugIn 
else 
   if [ "$ACTION" = "remove" ] ; then 
      /usr/bin/lipc-send-event -r 3 com.lab126.hal usbPlugOut 
      rm -rf ./mnt/us/autorun.* 
      rm -rf ./mnt/us/RECYCLER 
   else 
      if [ "$ACTION" = "online" ] ; then 
         /usr/bin/lipc-send-event -r 3 com.lab126.hal usbConfigured 
      else 
         if [ "$ACTION" = "offline" ] ; then 
            /usr/bin/lipc-send-event -r 3 com.lab126.hal usbUnconfigured 
         fi 
      fi 
   fi 
fi 

exit 0
i added this lines:

Code:
rm -rf ./mnt/us/autorun.* 
rm -rf ./mnt/us/RECYCLER
and now that the Kindle is removed, it automatically removes all the boot viruses from flash drive (Well, not all but the most extended ones)
Wild Rat is offline   Reply With Quote
Old 12-06-2010, 08:06 AM   #2
yifanlu
Kindle Dissector
yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
Quote:
Originally Posted by Wild Rat View Post
In the file ./lib/udev/bin/notifyusb :

Code:
#!/bin/sh 
if [ "$ACTION" = "add" ] ; then 
   /usr/bin/lipc-send-event -r 3 com.lab126.hal usbPlugIn 
else 
   if [ "$ACTION" = "remove" ] ; then 
      /usr/bin/lipc-send-event -r 3 com.lab126.hal usbPlugOut 
      rm -rf ./mnt/us/autorun.* 
      rm -rf ./mnt/us/RECYCLER 
   else 
      if [ "$ACTION" = "online" ] ; then 
         /usr/bin/lipc-send-event -r 3 com.lab126.hal usbConfigured 
      else 
         if [ "$ACTION" = "offline" ] ; then 
            /usr/bin/lipc-send-event -r 3 com.lab126.hal usbUnconfigured 
         fi 
      fi 
   fi 
fi 

exit 0
i added this lines:

Code:
rm -rf ./mnt/us/autorun.* 
rm -rf ./mnt/us/RECYCLER
and now that the Kindle is removed, it automatically removes all the boot viruses from flash drive (Well, not all but the most extended ones)
You may have to remove the dot, but I don't know the dir that the command is called from.
Code:
rm -rf /mnt/us/autorun.* 
rm -rf /mnt/us/RECYCLER
Also, isn't the bigger problem that you have a virus? I don't think this would do anything very productive, because windows XP and higher versions ask you before running autorun.
yifanlu is offline   Reply With Quote
Advert
Old 12-07-2010, 09:14 AM   #3
curstpriest
Confused
curstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toys
 
curstpriest's Avatar
 
Posts: 402
Karma: 5538
Join Date: Oct 2010
Location: Bay Area
Device: Kindle DXG
who even uses autorun anymore =X
curstpriest is offline   Reply With Quote
Old 12-07-2010, 11:51 AM   #4
Wild Rat
Junior Member
Wild Rat began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2010
Device: Amazon Kindle 3 WiFi+3G
Quote:
Originally Posted by curstpriest View Post
who even uses autorun anymore =X
Windows. By default.
Wild Rat is offline   Reply With Quote
Old 12-07-2010, 11:57 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Wild Rat View Post
Windows. By default.
Not since the days of XP. Vista and Win7 certainly don't automatically auto-run. They pop-up a list of options and ask you what you'd like to do.
HarryT is offline   Reply With Quote
Advert
Old 12-07-2010, 12:04 PM   #6
mikeayers
Zealot
mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.
 
mikeayers's Avatar
 
Posts: 136
Karma: 432377
Join Date: Nov 2010
Location: USA
Device: Kindle PW 10thGen, Kobo Clara HD
who even uses Windows anymore?
mikeayers is offline   Reply With Quote
Old 12-07-2010, 12:14 PM   #7
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
The overwhelming majority of desktop users.
HarryT is offline   Reply With Quote
Old 12-07-2010, 03:35 PM   #8
Bill Lumburgh
Enthusiast
Bill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipseBill Lumburgh can illuminate an eclipse
 
Posts: 31
Karma: 8132
Join Date: Sep 2010
Device: K3
Disabling autorun is generally a good idea but it's not necessarily going to make much of a difference since there are so many Windows Explorer shell code exploits that will still work even with autorun turned off (Stuxnet is one notable worm that works this way but I'm sure there are countless others). Turning autorun off (or using Ariad) is a good first step though.
Bill Lumburgh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free on Kindle: The Sari Shop Window [FREE AGAIN!] chilady1 Deals and Resources (No Self-Promotion or Affiliate Links) 14 07-31-2010 07:28 AM
Free Book: No Mercy [no longer free for Sony or for Kindle] cheerio6414 Deals and Resources (No Self-Promotion or Affiliate Links) 9 07-07-2010 08:08 AM
Kindle Free Book: Sins of the fathers [No longer Free] greencat Deals and Resources (No Self-Promotion or Affiliate Links) 5 02-01-2010 05:04 AM
Free Book (Kindle) - Crossing The Gates of Alaska [No Longer Free] koland Deals and Resources (No Self-Promotion or Affiliate Links) 4 01-29-2010 07:18 PM
Free: The Future of a Radical Price now free on Kindle koland Deals and Resources (No Self-Promotion or Affiliate Links) 4 07-15-2009 09:50 AM


All times are GMT -4. The time now is 08:44 AM.


MobileRead.com is a privately owned, operated and funded community.