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

 

 


Tema destacado: AIO elhacker.NET 2021 Compilación herramientas análisis y desinfección malware


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  StrConv Alternative Function
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: 1 [2] 3 Ir Abajo Respuesta Imprimir
Autor Tema: StrConv Alternative Function  (Leído 10,945 veces)
Swellow

Desconectado Desconectado

Mensajes: 77


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #10 en: 8 Octubre 2012, 18:55 pm »

Maybe you're trying before compiling. because If you're running into vb IDE doesn't work. but if you compile work correctly. at least for me work correclty.


Did you try using the StrConv alt I posted with the ROTXDecrypt? I do use Karcrack's memory funcs since a while now and I can tell you that the problem is not because of what you think. Just encrypt a string with ROTXEncrypt then use StrConv Alternative on the decrypt function and see if it gives a result, it won't... Now use StrConv normal and it'll work, that is because the Alt function does not work with unicode chars.


En línea

Danyfirex


Desconectado Desconectado

Mensajes: 493


My Dear Mizuho


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #11 en: 8 Octubre 2012, 19:50 pm »

Put some example that doesn't work to you, I don't got  it :huh:

I'm trying this and work correctly

Código
  1. Dim str As String
  2. Dim str2 As String
  3. 'Dim str3() As Byte
  4.  
  5.  
  6. str = ROTXEncrypt("Work", "pass")
  7. MsgBox (str)
  8. MsgBox (ROTXDecrypt(str, "pass"))
  9.  
  10.  


« Última modificación: 8 Octubre 2012, 19:53 pm por Danyfirex » En línea

Swellow

Desconectado Desconectado

Mensajes: 77


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #12 en: 8 Octubre 2012, 20:25 pm »

Ok try this and make sure to compile:

http://www.xup.in/dl,15300297/Desktop.rar/
En línea

Danyfirex


Desconectado Desconectado

Mensajes: 493


My Dear Mizuho


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #13 en: 8 Octubre 2012, 21:47 pm »

for me it doesn't work with alternative "AltStrConv" neither StrConv.

now I have to go out. I'll come back later.
En línea

Karcrack


Desconectado Desconectado

Mensajes: 2.416


Se siente observado ¬¬'


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #14 en: 9 Octubre 2012, 00:32 am »

Paste the ROTxEncrypt() function please.
En línea

Danyfirex


Desconectado Desconectado

Mensajes: 493


My Dear Mizuho


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #15 en: 9 Octubre 2012, 00:45 am »

Paste the ROTxEncrypt() function please.

Es esta:

Código
  1. Private Sub Form_Load()
  2. Dim str As String
  3. Dim str2 As String
  4.  
  5.  
  6. str = ROTXEncrypt("-978ç___#{~#{~#'é(-è", "pass")
  7. MsgBox (str)
  8. MsgBox (ROTXDecrypt(str, "pass"))
  9. End Sub
  10.  
  11. Public Function AltStrConv(Temp As Variant, Conversion As VbStrConv) As Variant
  12. Dim i As Long, lLen As Long, bvHack(0) As Byte, lHackDelta As Long
  13. Dim bArr() As Byte, sString As String
  14.  
  15. lHackDelta = VarPtr(bvHack(0))
  16.  
  17. If Conversion = vbFromUnicode Then
  18.    sString = Temp
  19.    lLen = Len(sString)
  20.    ReDim bArr(0 To lLen - 1)
  21.    For i = 0 To lLen - 1
  22.        bvHack(VarPtr(bArr(0)) - lHackDelta + i) = bvHack(StrPtr(sString) - lHackDelta + (i * 2))
  23.    Next i
  24.    AltStrConv = bArr
  25. ElseIf Conversion = vbUnicode Then
  26.    bArr = Temp
  27.    lLen = UBound(Temp) + 1
  28.    sString = Space$(lLen)
  29.    For i = 0 To lLen - 1
  30.        bvHack(StrPtr(sString) - lHackDelta + (i * 2)) = bvHack(VarPtr(bArr(0)) - lHackDelta + i)
  31.    Next i
  32.    AltStrConv = sString
  33. End If
  34.  
  35. End Function
  36.  
  37. Function ROTXDecrypt(ByVal strData As String, ByVal strKey As String)
  38.    On Error Resume Next
  39.    Dim bData() As Byte, bKey() As Byte
  40.    bData = AltStrConv(strData, vbFromUnicode)
  41.    bKey = AltStrConv(strKey, vbFromUnicode)
  42.    For i = 0 To UBound(bData)
  43.        If i <= UBound(bKey) Then
  44.            bData(i) = bData(i) - bKey(i)
  45.        Else
  46.            bData(i) = bData(i) - bKey(i Mod UBound(bKey))
  47.        End If
  48.    Next i
  49.    ROTXDecrypt = AltStrConv(bData, vbUnicode)
  50. End Function
  51.  
  52. Function ROTXEncrypt(ByVal strData As String, ByVal strKey As String)
  53.    On Error Resume Next
  54.    Dim bData() As Byte
  55.    Dim bKey() As Byte
  56.    bData = StrConv(strData, vbFromUnicode)
  57.    bKey = StrConv(strKey, vbFromUnicode)
  58.    For i = 0 To UBound(bData)
  59.        If i <= UBound(bKey) Then
  60.            bData(i) = bData(i) + bKey(i)
  61.        Else
  62.            bData(i) = bData(i) + bKey(i Mod UBound(bKey))
  63.        End If
  64.    Next i
  65.    ROTXEncrypt = StrConv(bData, vbUnicode)
  66. End Function
  67.  

En línea

Swellow

Desconectado Desconectado

Mensajes: 77


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #16 en: 9 Octubre 2012, 13:54 pm »

Some chars cannot be encrypted using ROTX cause it is a poor encryption but u can see a big difference when u decrypt using original StrConv and AltStrConv... This is because it doesnt support unicode chars, Karcrack I count on you :P
En línea

Karcrack


Desconectado Desconectado

Mensajes: 2.416


Se siente observado ¬¬'


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #17 en: 9 Octubre 2012, 14:24 pm »

Remove "On error resume next" and learn to debug your own codes. You are getting overflow.
En línea

Swellow

Desconectado Desconectado

Mensajes: 77


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #18 en: 9 Octubre 2012, 14:27 pm »

Remove "On error resume next" and learn to debug your own codes. You are getting overflow.

Yeah now use StrConv normal you won't get overflow.
En línea

Karcrack


Desconectado Desconectado

Mensajes: 2.416


Se siente observado ¬¬'


Ver Perfil
Re: StrConv Alternative Function
« Respuesta #19 en: 9 Octubre 2012, 14:35 pm »

Yeah now use StrConv normal you won't get overflow.
False.
En línea

Páginas: 1 [2] 3 Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
GetProcAddress alternative function
Programación Visual Basic
cobein 2 3,033 Último mensaje 9 Octubre 2008, 00:24 am
por cobein
StrPtr Alternative
Programación Visual Basic
Swellow 4 2,973 Último mensaje 11 Junio 2012, 14:30 pm
por Swellow
[HELP] Invoke or Alternative to InternetReadFile API
Programación Visual Basic
Swellow 2 2,011 Último mensaje 22 Junio 2012, 04:31 am
por Swellow
Alternative Replace & Right Functions
Programación Visual Basic
Swellow 6 2,750 Último mensaje 9 Noviembre 2012, 20:46 pm
por Swellow
Duda sobre strconv y conversiones byte-caracter
Programación Visual Basic
OfTheVara 2 1,609 Último mensaje 8 Julio 2015, 13:11 pm
por OfTheVara
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines