Advertisement
juliozaco

sacar direcciones del index.dat

Aug 5th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. desde el prompt y habiendo cogido el fichero index.dat es:
  2.  
  3. find "http://" /i index.dat | sort > histo.txt
  4.  
  5.  
  6.  
  7. si quieres hacerlo desde la red sería algo como:
  8.  
  9. find "http" /i "\\10.74.%1\c$\Documents and Settings\%usu%\Configuraci¢n local\Historial\History.IE5\index.DAT"  > %1-histo-%ahora%.txt
  10.  
  11. donde %1 son los dos últimos nodos de la red
  12. %usu% el usuario windows
  13. %ahora% la fecha para generarme el fichero salida
  14.  
  15.  
  16. un ejemplo de un script sería:
  17.  
  18. set ahora=08102009-1
  19. if [%1]==[2.2] set usu=VTOMA
  20. ping 10.74.%1 -n 1 > nul
  21. if errorlevel 1 goto fin
  22. if errorlevel 0 goto lista
  23. :lista
  24. d:\pstools\psexec \\10.74.%1 -u %usuario% -P %paso% -s exit
  25. find "http" /i "\\10.74.%1\c$\Documents and Settings\%usu%\Configuraci¢n local\Historial\History.IE5\index.DAT"  > %1-histo-%ahora%.txt
  26. COPY "\\10.74.%1\c$\Documents and Settings\%usu%\Configuraci¢n local\Historial\History.IE5\index.DAT" %1-index-%ahora%.dat
  27. :fin
  28.  
  29.  
  30. este intenta buscar el equipo con ping, si está activo utiliza pstools para conectarse, pues a no ser que no seas admin algunos pcs no te dejan ver el index.dat
  31. y luego hace el simple find.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement