vmware

navigator at hypercomm.gr navigator at hypercomm.gr
Sun Apr 18 21:56:16 EEST 1999


-=> Quoting In:ricudis at paiko.gr to ** All ** <=-

 In> Hello All!

 In> Εγκατεστησα πριν απο ενα μηνα τη beta εκδοση του vmware, και σημερα
 In> διαπιστωσα οτι εχει ενα πολυ σοβαρο bug. Συγκεκριμενα, κατι του
 In> απαγορευει να δουλεψει πανω απο ενα μηνα. Καθησα και εγραψα λοιπον το
 In> παρακατω bug fix :  
 
  Les na mhn einai bug? :))))
 
 In> #include <time.h>
 In> #include <dlfcn.h>

 In> static unsigned int mikros_xnoudwtos_mwb_counter=0;
 In> static unsigned int glykoyli_xnoudwto_mwb_katw_toixaki=15;
 In> static unsigned int glykoyli_xnoudwto_mwb_anw_toixaki=19;

  Eytyxws poy orizeis metablhtes poy einai eykoles na tis 8ymi8eis.

 In> time_t time (time_t *t) {

 In> time_t kot;

 In> void *handle = dlopen ("/lib/libc.so.6", RTLD_LAZY);
 In> time_t (*origtime)(time_t *) = dlsym(handle,"time");
 In> (*origtime)(&kot);
 In> dlclose(handle);
 In> 
 In> if
 In> ((mikros_xnoudwtos_mwb_counter>glykoyli_xnoudwto_mwb_katw_toixaki) 
 In> &&
 In> (mikros_xnoudwtos_mwb_counter<glykoyli_xnoudwto_mwb_anw_toixaki)) {
 In> kot-=31536000; }

 In> if (t!=NULL) {
 In> memcpy(t,&kot,sizeof(time_t));
 In> }
 In> 
 In> mikros_xnoudwtos_mwb_counter++;
 In> return(kot);
 In> }

 In> To kanete compile me : 

 In> gcc -O2 koko.c -fPIC -shared -ldl -o koko.so

 In> kai to xrhsimopoieite me : 

 In> export LD_PRELOAD=koko.so ; vmware ; export LD_PRELOAD=

 In> To panw kai to katw toixaki orizoyn poies apo tis klhseis sthn time()
 In> mesa sto programma 8a gyrisoyn ws dia mageias ena xrono pisw. Oi times
 In> 15 kai 19 doylepsan gia mena kai den parousiasan allages sto xrono toy
 In> ypoloipoy virtual machine. 

 In> --
 In> Christos Ricudis
 In> Prof:    So the American government went to IBM to come up with a data
 In> encryption standard and they came up with ...
 In> Student: EBCDIC!

  Kata ta alla, kalo. Mprabo. (Na, ayto einai hacking, oxi hlh8ia bombs!)
  Φιλικά,
Navigator


... Real men do it on Un*x only. Real hackers do it anywhere!  -Nav.

___ Blue Wave/QWK v2.20
Origin: Hypercomm BBS  4008920 (hunt line) (24h) 
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list