elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Guía actualizada para evitar que un ransomware ataque tu empresa


  Mostrar Mensajes
Páginas: 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25
211  Programación / Scripting / Re: [Another Duda VBS] Agregando cosas al registro en: 15 Septiembre 2009, 16:39 pm
Ok, problema arreglado.

Utilize HKCU y funciona perfectamente ;)
212  Programación / Scripting / Re: [Duda VBS] Clipboardd. en: 15 Septiembre 2009, 16:34 pm
Ok, gracias ;D

Pues todo resuelto ^^

Aqui tenemos el code para usar el portapapeles sin problemas, sin el maldito

Código:
set registro = createobject("wscript.shell")
registro.regwrite"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1407",0,"REG_SZ"
set objfso = createobject("scripting.filesystemobject")
set clipboard = createobject("internetexplorer.application")
set myfile = objfso.opentextfile("file.txt",1)
texto = myfile.readall
clipboard.navigate "about:blank"
clipboard.document.parentwindow.clipboarddata.setdata "text",texto
clipboard.quit
myfile.close

 ;-)
213  Programación / Scripting / {Resuelto} [vbs] Problema con autocopiar en: 15 Septiembre 2009, 16:28 pm
Código:
set autocopia = createobject("scripting.filesystemobject")
autocopia.copyfile "wscript.scriptfullname", "%userprofile%\vbs.vbs", true

Consegui esto.

Pero da error...

Citar
Linea 2 caracter1

wtf?
214  Programación / Scripting / Re: [Another Duda VBS] Agregando cosas al registro en: 15 Septiembre 2009, 16:04 pm
Pero sin no se pueden poner los parentesis () tu tutorial esta mal xD
215  Programación / Scripting / Re: [Duda VBS] Clipboardd. en: 15 Septiembre 2009, 15:34 pm
Entonces se pondría 3?  :huh:
216  Programación / Scripting / Re: [Another Duda VBS] Agregando cosas al registro en: 15 Septiembre 2009, 15:31 pm
=S

me da error..

si pongo:
Código:
Set objshell = createobject("wscript.shell")
objshell.regwrite("HKLM\Software\Microsoft\Windows\CurrentVersion\Run\miscriptdevbs",wscript.scriptfullname,"REG_SZ")

y si pongo
Código:
Set objshell = createobject("wscript.shell")
objshell.regwrite"HKLM\Software\Microsoft\Windows\CurrentVersion\Run\miscriptdevbs",wscript.scriptfullname,"REG_SZ"
me dice Acceso Denegado.. aunque ya sera cosa del vista.. =S
217  Programación / Scripting / Re: [Duda VBS] Clipboardd. en: 15 Septiembre 2009, 15:19 pm
Ok, buscaré la ruta del registro ;D
218  Programación / Scripting / Re: [Duda VBS] Clipboardd. en: 15 Septiembre 2009, 14:11 pm
Lo conseguí!!  ;-)

Código:
set objfso = createobject("scripting.filesystemobject")
set clipboard = createobject("internetexplorer.application")
set myfile = objfso.opentextfile("file.txt",1)
texto = myfile.readline
clipboard.navigate "about:blank"
clipboard.document.parentwindow.clipboarddata.setdata "text",texto
clipboard.quit
myfile.close

 ::)

Ahora a ver si encuentro alguna forma de quitar el..




No se si valdrá una mezcla de sendkeys y setcursorpos.. :P :rolleyes: ;D


Gracias tio!! :-*
219  Programación / Scripting / Re: [Another Duda VBS] Agregando cosas al registro en: 15 Septiembre 2009, 11:57 am
Ah entiendo.. entonces sería así:

Código:
Set objshell = createobject("wscript.shell")
objshell.regwrite("HKLM\Software\Microsoft\Windows\CurrentVersion\Run\nombredelaentradaxD",wscript.scriptfullname,"REG_SZ")


 ;D
220  Programación / Scripting / Re: [Duda VBS] Clipboardd. en: 15 Septiembre 2009, 11:54 am
Pegame me da igual si aprendo xD xD xD
Páginas: 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines