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

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


  Mostrar Mensajes
Páginas: 1 ... 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 [54] 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 ... 72
531  Programación / .NET (C#, VB.NET, ASP) / Re: Ayuda, buscar y resaltar la palabras de un RichTextBox en: 27 Noviembre 2017, 21:32 pm
he hecho lo que me dices pero me salen mas errores . por eso te he mandado el proyecto por un mensaje privado. Perdoname por tantas molestias .  ;)
532  Programación / .NET (C#, VB.NET, ASP) / Re: Ayuda, buscar y resaltar la palabras de un RichTextBox en: 27 Noviembre 2017, 20:32 pm
bueno he colocado cada clase a mi proyectos con su mismos nombres pero ahora me dice :

Código:
Error	1	'ColorizeMatches' no es un miembro de 'System.Windows.Forms.RichTextBox'.	
533  Programación / .NET (C#, VB.NET, ASP) / Re: Ayuda, buscar y resaltar la palabras de un RichTextBox en: 27 Noviembre 2017, 19:10 pm
Gracias por respoender Elektro .

en internet encontre este codigo que me busca y subralla la palabra que busco en un RichTextbox .

code que encontre en internet:

Código
  1. Dim TEMPORAL As String = RichTextBox1.Text
  2.        RichTextBox1.Clear()
  3.        RichTextBox1.Text = TEMPORAL
  4.        Try
  5.            Dim BUSQUEDA As String = InputBox("BUSCAR")
  6.            Dim INDEX As Integer
  7.            While INDEX < RichTextBox1.Text.LastIndexOf(BUSQUEDA)
  8.                RichTextBox1.Find(BUSQUEDA, INDEX, RichTextBox1.TextLength, RichTextBoxFinds.None)
  9.                RichTextBox1.SelectionBackColor = Color.DarkBlue
  10.                INDEX = RichTextBox1.Text.IndexOf(BUSQUEDA, INDEX) + 1
  11.            End While
  12.        Catch ex As Exception
  13.            MsgBox(ex.Message)
  14.        End Try


Pero el Tu codigo esta SUPER . pero al intentar abrirlo con mi vb 2010 me salen miles de errores .


bueno pase el code importante a un boton de mi proyecto pero me sale 1 error .


aqui te dejo el code que extraje y puse en mi proyecto.


Código
  1. Dim rtb As RichTextBox = Me.RichTextBox1
  2.  
  3.        ' Reset selection.
  4.        With rtb
  5.            .SelectAll()
  6.            .SelectionColor = .ForeColor
  7.            .SelectionBackColor = .BackColor
  8.            .SelectionFont = .Font
  9.            .Select(0, 0)
  10.        End With
  11.  
  12.        ' Perform a new selection.
  13.        Dim find As String = Me.TextBox1.Text ' The text to find.
  14.        Dim ignoreCase As Boolean = Me.CheckBox1.Checked
  15.        Dim forecolor As Color = Color.LimeGreen
  16.        Dim backcolor As Color = rtb.SelectionBackColor
  17.        Dim font As Font = rtb.SelectionFont
  18.  
  19.        Dim occurrences As Integer = rtb.ColorizeMatches(find, ignoreCase, forecolor, backcolor, font)   ' HE AQUI EL ERROR ME DICE COLORIZEMATCHES NO ES UN MIENBRO DE SYSTEM.WINDOWS.FORM1.WINDOWSAPLICATION10
  20.        Me.Label1.Text = String.Format("{0} occurrences", occurrences)

EL ERROR ME DICE COLORIZEMATCHES NO ES UN MIENBRO DE SYSTEM.WINDOWS.FORM1.WINDOWSAPLICATION10
534  Informática / Software / Batch IDE v1.0 en: 27 Noviembre 2017, 01:37 am
hola a todos , bueno . la verdad no me decido a ver donde es que debería situar este tema. asi que decidí ubicarlo aquí . si algún moderador ve este tema, le pido que si me lo pude ubicar bien .

bueno como dice el titulo es una herramienta , que sirve para la programacion en batch. y posee múltiples funciones, por ejemplo de ofuscamiento.

bueno he aquí el link:

https://mega.nz/#!FlMyWCgD!iPKLcUcGJz4chIqZ6aLgXhJ4nBDonjCuwSLVuEIbP_M

y aqui dejo ejemplos:

batch sin ofuscar:

Código
  1. @echo off
  2. echo/
  3. echo hola mundo
  4. echo/
  5. pause


Batch ofuscado con el metodo 1:

Código
  1. @echo off
  2. set mevexdh=a
  3. set roanyli=b
  4. set ahctspg=c
  5. set jjmjyua=d
  6. set vxbqovb=e
  7. set weirsgp=f
  8. set trzujwk=g
  9. set ovnuyow=h
  10. set fjspulb=i
  11. set cmbjzab=j
  12. set uejreve=k
  13. set ckbbcaj=l
  14. set xxwketq=m
  15. set rxhwlmd=n
  16. set dtikdmo=o
  17. set rrzvvla=p
  18. set xopassv=q
  19. set nlcfapu=r
  20. set obqqqbd=s
  21. set vlqthhs=t
  22. set zxreuqe=u
  23. set sbkktkc=v
  24. set hlmrhih=w
  25. set bxreibp=x
  26. set jiidagd=y
  27. set yjdbben=z
  28. @%vxbqovb%%ahctspg%%ovnuyow%%dtikdmo% %dtikdmo%%weirsgp%%weirsgp%
  29. %vxbqovb%%ahctspg%%ovnuyow%%dtikdmo%/
  30. %vxbqovb%%ahctspg%%ovnuyow%%dtikdmo% %ovnuyow%%dtikdmo%%ckbbcaj%%mevexdh% %xxwketq%%zxreuqe%%rxhwlmd%%jjmjyua%%dtikdmo%
  31. %vxbqovb%%ahctspg%%ovnuyow%%dtikdmo%/
  32. %rrzvvla%%mevexdh%%zxreuqe%%obqqqbd%%vxbqovb%


Batch ofuscado con metodo 2:
Código
  1. %leqcebs%@%khuqzog%e%ecgmmij%c%wkhlecr%h%utpvdsc%o%gyxshsj% %etzcaho%o%mnxlfnx%f%mlcjfac%f%eijievp%
  2. %gcbgcgx%e%rdgqyif%c%fvykxhg%h%juktepm%o%qnrfiww%/%ewcquvc%
  3. %gijhrga%e%xjyzicy%c%ibwasdl%h%thjdgge%o%pyhaqxk% %tabcqgb%h%jspqfdq%o%pudmvjw%l%afpgemy%a%qknrnii% %lbruhba%m%naiizmr%u%zaqpkmo%n%wwocode%d%vnhtnrz%o%ateiwyp%
  4. %bnbmeli%e%klcjspr%c%nbmoxzo%h%pelwikr%o%dsvxojh%/%gcflatt%
  5. %nseelyt%p%lrffxni%a%vkilrrh%u%dmsbwwa%s%pahinxc%e

Batch ofuscado con metodo 3:

Código
  1. &#2573;&#27747;&#3443;&#16394;&#25445;&#28520;&#28448;&#26214;&#2573;&#25445;&#28520;&#3375;&#25866;&#26723;&#8303;&#28520;&#24940;&#27936;&#28277;&#28516;&#2573;&#25445;&#28520;&#3375;&#28682;&#30049;&#25971;

BUeno ahora una imagene:


Porfavor comenten cualquier cosa.  ;D
535  Programación / .NET (C#, VB.NET, ASP) / Ayuda, buscar y resaltar la palabras de un RichTextBox en: 26 Noviembre 2017, 20:30 pm
bueno como dice el titulo quiero buscar y resaltar una palabra de un RichTextBox1.


este método solo marca la 1era palabra encontrada. y las otras palabras que son las mismas no la subraya.

ejemplo le digo que busque todas las palabras hola , pero solo me marca la primera encontrada y las demás no mas marca.


Código
  1. Dim Search, Where
  2.  
  3.        Search = TextBox1.Text
  4.        Where = InStr(RichTextBox1.Text, Search)
  5.        Dim n As Integer
  6.        If Where Then
  7.            Name = n + 1
  8.            RichTextBox1.Focus()
  9.            RichTextBox1.SelectionStart = Where - 1
  10.            RichTextBox1.SelectionLength = Len(Search)
  11.        Else
  12.            MsgBox("String not found.")
  13.        End If

Gracias de antemano.
536  Foros Generales / Noticias / Re: 1.000 millones de dispositivos Android están desactualizados en: 16 Noviembre 2017, 20:21 pm
jajajaj. meda risa . bueno yo tengo dos teléfonos android un huawei y300 y un samsung YP-G1 . Al huawei lo tengo desactualizado con android 4.1  y al Samsung que venia originalmente con android 2.2.2 le meti una CarbonRom con android 5.0.  ;D
537  Seguridad Informática / Análisis y Diseño de Malware / Re: Los ejuecutables (.exe , .msi) me salen como aplicaciones html (.hta) en: 16 Noviembre 2017, 20:01 pm
Gracias por la respuesta @NEBIRE .

Ya lo había solucionado, solamente hice esto:


inicio + r  ,  escribí  regedit y presione enter y me fui a HKEY_CURRENT_USER\Software\Classes\.bat   y hay edite el valor que estaba en htafile lo cambie a BAT_auto_file  y listo ya solucione el problema con los .bat .

PD: no creo que esa fuera la manera de hacerlo correctamente pero lo hice , y funciono.

PD2: Con esto que me paso tengo una buena idea para hacer un virus . jejejejeje. ;D
538  Seguridad Informática / Análisis y Diseño de Malware / Re: Los ejuecutables (.exe , .msi) me salen como aplicaciones html (.hta) en: 16 Noviembre 2017, 15:55 pm
descubri que la intentar abrir los programas .exe directamente no sirve pero al abrirlo indirectamente si abren.

por ejemplo abro el programa vlc player no me sirve, pero al abrir un video si abre el vls player.

entonces como el antivirus no me abre directamente , doy click derecho analizar con 360 segurity y si me abrio el antivirus lo puse a analizar la pc y me soluciono el problema que tenia con los .exe y .msi . los detecto como "ANOMALIAS DEL SISTEMA"

YA SOLUCIONE EL PROBLEMA CON LOS EJECUTABLES . PERO EN EL CASO DE LOS ARCHIVOS POR LOTES .BAT Y .CMD SIGUE IGUAL LOS DETECTA COMO SI FUERAN APLICACIONES HTML (.HTA)
539  Seguridad Informática / Análisis y Diseño de Malware / Los ejuecutables (.exe , .msi) me salen como aplicaciones html (.hta) en: 16 Noviembre 2017, 15:35 pm
hola, como dice el titulo no puedo abrir ni el administrador de tareas ya que ahora todos los .exe el windows los lee como .hta y los abre asi:



AQUI DEJO UNA FOTO DE CUANDO REINICIE LA PC:



no solo los .exe tambien los .bat.  :(

todo paso cuando copile un batch y lo abri :

el batch es este bueo no es del todo batch mas bien es una aplicacion html dentro de un batch:

Código
  1. @goto :batch
  2. <html><!--
  3. :batch
  4. @echo off
  5. if /I "%1"=="{AddText}" goto :addtext
  6. if /I "%1"=="{GetText}" goto :gettext
  7. if /I "%1"=="{StripChars}" goto :StripChars
  8. mode con: cols=31 lines=5
  9. title [%~n0]
  10. color 0a
  11. echo.
  12. echo.
  13. echo.          loading ...
  14. reg add HKCU\Software\Classes\%~x0 /d "htafile" /f >nul
  15. start "" mshta.exe "%~dpnx0"
  16. exit
  17. :addtext
  18. for /f "tokens=*" %%A in ('echo.%2') do set "filedir=%%~dpA" & set "filename=%%~nxA"
  19. copy /y %2 "%filedir%\[WithMessage] %filename%" >nul
  20. echo.>>"%filedir%\[WithMessage] %filename%"
  21. echo.>>"%filedir%\[WithMessage] %filename%"
  22. set "txt=%3"
  23. set "txt=%txt:~1%"
  24. set "txt=%txt:~0,-1%"
  25. echo.:#%txt%>>"%filedir%\[WithMessage] %filename%"
  26. echo.[WithMessage] %filename%
  27. exit
  28. :gettext
  29. set /a "linenum=0+0"
  30. for /f "tokens=*" %%A in ('echo.%2') do for /f "tokens=*" %%B in ('type "%%~dpnxA"') do set "msgline=%%B"
  31. for /f "tokens=1,2 delims=#" %%A in ('echo.%msgline%') do (
  32. if "%%A"==":" (
  33. echo.%%B
  34. ) else (
  35. echo.{nomsg}
  36. )
  37. )
  38. exit
  39. :StripChars
  40. set "txt=%2"
  41. set "txt=%txt:~1%"
  42. echo."%txt:~0,-3%"
  43. exit
  44. -->
  45. <head>
  46. <title>Encrypt Messages Into Image-Files</title>
  47. <HTA:APPLICATION ID="ThisApp"
  48. APPLICATIONNAME="Encrypt Messages Into Image-Files"
  49. scroll="no"
  50. icon=""
  51. showintaskbar="no"
  52. sysmenu="yes"
  53. caption="yes"
  54. maximizebutton="no"
  55. minamizebutton="no"
  56. >
  57. </head>
  58. <script language="VBScript">
  59. sub Window_OnLoad
  60. Ext = split(split(ThisApp.commandline,chr(34))(1),".")(ubound(split(split(ThisApp.commandline,chr(34))(1),".")))
  61. createobject("wscript.shell").run "reg add HKCU\Software\Classes\."&Ext&" /d "&chr(34)&Ext&"file"&chr(34)&" /f",0,true
  62. window.resizeto 670,600
  63. end sub
  64. sub addtxt()
  65. buildtxt = ""
  66. for c = 1 to len(document.all.txtmessage.value)
  67. buildtxt = buildtxt& chr(asc(mid(document.all.txtmessage.value,c,1))+4)
  68. next
  69. buildnewfileandgetname = CommandLine("@call "&chr(34)&split(ThisApp.commandline,chr(34))(1)&chr(34) _
  70. &" {AddText} "&chr(34)&document.all.addmsgto.value&chr(34)&" "&chr(34)&buildtxt&chr(34))
  71. msgbox "The JPG-File was copied and the message was injected into the copy. The copy is in the same folder."
  72. end sub
  73. sub readtxt()
  74. rawtxt = CommandLine("@call "&chr(34)&split(ThisApp.commandline,chr(34))(1)&chr(34) _
  75. &" {GetText} "&chr(34)&document.all.getmsgfrom.value&chr(34))
  76. if NOT rawtxt = "{nomsg}" then
  77. decryptmsg = ""
  78. for c = 1 to len(rawtxt)
  79. decryptmsg = decryptmsg& chr(asc(mid(rawtxt,c,1))-4)
  80. next
  81. decryptmsg = CommandLine("@call "&chr(34)&split(ThisApp.commandline,chr(34))(1)&chr(34) _
  82. &" {StripChars} "&chr(34)&decryptmsg&chr(34))
  83. else
  84. decryptmsg = "no message in this file"
  85. end if
  86. msgbox "Hidden Message: "&decryptmsg,0,"Viewing Hidden Message"
  87. end sub
  88. function CommandLine(cmmd)
  89. set clipboard = createobject("htmlfile")
  90. cliptext = clipboard.ParentWindow.ClipboardData.GetData("text")
  91. createobject("wscript.shell").run chr(34)&"%comspec%"&chr(34)&" /d /c "&cmmd&"|clip",0,true
  92. CommandLine = clipboard.ParentWindow.ClipboardData.GetData("text")
  93. if NOT isnull(cliptext) then clipboard.ParentWindow.ClipboardData.SetData "text",cliptext
  94. end function
  95. </script>
  96. <body bgcolor=black style=border:0px;padding:0px;margin:0px;color:black;font-size:0;font-family:arial ><br/><font color=cyan size=2><center><br/>
  97. <font size=4 face=terminal>
  98. <a style=color:red;text-decoration:none target=_blank href=https://hackforums.net/member.php?action=profile&uid=3089494 >by <u>ImDeepWithWindows</u></a>
  99. </font><br/><br/><hr noshade=noshade style=color:purple;border-color:purple;border-style:solid;padding:0px;margin:0px />
  100. <div align=left>encrypt messages inside JPG image-files</div>
  101. <hr noshade=noshade style=color:purple;border-color:purple;border-style:solid;padding:0px;margin:0px /><center><br/><br/>
  102. <fieldset style=width:60%;border-style:solid;border-color:grey;margin:0px;padding:0px;border-width:4px>
  103. <legend style=color:yellow;margin:0px;padding:0px;border-style:solid;border-color:grey;border-width:4px ><b>Hide Message In JPG File</b></legend>
  104. <br/><br/><br/>Browse For JPG-File:
  105. <input type=file value="Select Image File" name=addmsgto style=display:inline-block;border-color:purple;border-style:solid;background-color:black;color:yellow accept="jpg,image/jpg" />
  106. <br/><br/>Message To Hide: <input type=text name=txtmessage style=border-color:grey;border-style:solid;background-color:black;color:yellow /><br/>
  107. <br/><input type=submit value="Hide Message" style=color:#00ff00;background-color:black;border-color:purple;border-style:solid onclick=addtxt() />
  108. <br/><br/><br/></fieldset><br/><br/><br/><fieldset style=width:60%;border-style:solid;border-color:grey;margin:0px;padding:0px;border-width:4px>
  109. <legend style=color:yellow;margin:0px;padding:0px;border-style:solid;border-color:grey;border-width:4px ><b>Read Hidden Message From JPG File</b></legend>
  110. <br/><br/><br/>Browse For JPG-File:
  111. <input type=file value="Select Image File" name=getmsgfrom style=border-color:purple;border-style:solid;background-color:black;color:yellow accept="jpg" /><br/>
  112. <br/><input type=submit value="Read Hidden Message" style=color:#00ff00;background-color:black;border-color:purple;border-style:solid onclick=readtxt() />
  113. <br/><br/><br/></fieldset>



bueno sospecho que este batch me configuro mediante el registro de windows (regedit) para que todos los .exe y .bat se reconocieran como .hta

por que sospecho esto? sospecho esto por el siguiente codigo:

Código
  1. sub Window_OnLoad
  2. Ext = split(split(ThisApp.commandline,chr(34))(1),".")(ubound(split(split(ThisApp.commandline,chr(34))(1),".")))
  3. createobject("wscript.shell").run "reg add HKCU\Software\Classes\."&Ext&" /d "&chr(34)&Ext&"file"&chr(34)&" /f",0,true
  4. window.resizeto 670,600
  5. end sub



en esa parte que es vbs el code toca el registro , mi sospecha es que hay se cofigura para que lea todos los .exe y .bat como si fueran .hta .

Código
  1. reg add HKCU\Software\Classes\%~x0 /d "htafile" /f >nul

me parece que esa parte del code tambien es lo que me esta jodiendo.

PD: ME IMAGINO QUE LA SOLUCIÓN SERIA UN VBS QUE TAMBIEN EDITE EL REGISTRO VOLVIENDO LOS VALORES COMO ESTABAN ANTES.


GRACIAS DE ANTEMANO

MOD: Imagenes adaptadas a lo permitido.
540  Programación / .NET (C#, VB.NET, ASP) / Re: ayuda en VB.NET en: 13 Noviembre 2017, 17:05 pm
bueno , acepto todo lo que mes has dicho como critica constructiva . de verdad admito que fuy un poco flojo acerca de el titulo.

y acerca del code ya lo he logrado , bueno ha quedado asi:

Código
  1. Const SAFT48kHz16BitStereo = 39
  2.        Const SSFMCreateForWrite = 3
  3.        Dim oFileStream, oVoice
  4.        Dim saveFileDialog2 As New SaveFileDialog()
  5.        saveFileDialog2.Filter = "WAV Sound|*.wav"
  6.        saveFileDialog2.Title = "Save an sound File"
  7.        saveFileDialog2.ShowDialog()
  8.        Try
  9.                oFileStream = CreateObject("SAPI.SpFileStream")
  10.                oFileStream.Format.Type = SAFT48kHz16BitStereo
  11.                oFileStream.Open(saveFileDialog2.FileName, SSFMCreateForWrite)
  12.  
  13.                oVoice = CreateObject("SAPI.SpVoice")
  14.                oVoice.AudioOutputStream = oFileStream
  15.                oVoice.Speak(ben.Text, 3)
  16.  
  17.                oVoice.WaitUntilDone(10000)
  18.  
  19.                oFileStream.Close()
  20.        Catch ex As Exception
  21.            MsgBox(ex.Message)
  22.        End Try
Páginas: 1 ... 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 [54] 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 ... 72
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines