Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - Cudder

Páginas: [1] 2
1
Visual Basic 6 / [HELP] Invoke API's
« en: Noviembre 24, 2012, 01:33:58 am »
Hola amigos! Can anyone please Invoke(CallAPI) those API's please?

Código: [Seleccionar]
Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" (ByVal hFtpSession As Long, ByVal lpszLocalFile As String, ByVal lpszRemoteFile As String, ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean
Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" (ByVal hInternetSession As Long, ByVal sServerName As String, ByVal nServerPort As Integer, ByVal sUserName As String, ByVal sPassword As String, ByVal nService As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long
Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, ByVal nAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal nFlags As Long) As Long
Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer
Declare Function InternetOpenUrlA Lib "wininet" (ByVal hInternetSession As Long, ByVal lpszUrl As String, ByVal lpszHeaders As String, ByVal dwHeadersLength As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long
Const INTERNET_SERVICE_FTP = 1: Global sURL As String

Function FTPUpload(sFile As String, sHost As String, sUser As String, sPass As String)
    Dim hINetSession, hSession, sTemp() As String: sTemp = Split(sFile, "\")
     
    hINetSession = InternetOpen("project", 0, vbNullString, vbNullString, 0)
    hSession = InternetConnect(hINetSession, sHost, "21", sUser, sPass, INTERNET_SERVICE_FTP, 0, 0)
    If FtpPutFile(hSession, sFile, sTemp(UBound(sTemp)), 1, 0) = False Then
        Call InternetCloseHandle(hSession): Call InternetCloseHandle(hINetSession)
    End If
End Function

Código: [Seleccionar]
Option Explicit

Private Const MICROSOFT_CDO_CONFIGURATION$ = "http://schemas.microsoft.com/cdo/configuration/"

Private Declare Function GetFileAttributesW Lib "KERNEL32" (ByVal lpFileName As Long) As Long
Private Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef lpdwFlags As Long, ByVal dwReserved As Long) As Long

Private lngPort&, strUser$, strPass$, strFrom$, strServer$, strSubject$, strMessage$, strDestinatary$, strAttachedFile$
Private objCDO As Object, bolUseAuntentificacion As Boolean, bolSSL As Boolean

Friend Property Let Server(ByRef Value$): strServer = Value: End Property
Friend Property Let Destinatary(ByRef Value$): strDestinatary = Value: End Property
Friend Property Let From(ByRef Value$): strFrom = Value: End Property
Friend Property Let Subject(ByRef Value$): strSubject = Value: End Property
Friend Property Let Message(ByRef Value$): strMessage = Value: End Property
Friend Property Let AttachedFile(ByRef Value$): strAttachedFile = Value: End Property
Friend Property Let Port(ByVal Value&): lngPort = Value: End Property
Friend Property Let User(ByRef Value$): strUser = Value: End Property
Friend Property Let Password(ByRef Value$): strPass = Value: End Property
Friend Property Let UseAuntentificacion(ByVal Value As Boolean): bolUseAuntentificacion = Value: End Property
Friend Property Let SSL(ByVal Value As Boolean): bolSSL = Value: End Property

Friend Function SendMail() As Boolean
    On Error GoTo FatalError
   
    If InternetGetConnectedState(&H0&, &H0&) Then
        If (LenB(strPass) = 0) Or (LenB(strUser) = 0) Or (LenB(strFrom) = 0) Or (LenB(strServer) = 0) Or (LenB(strDestinatary) = 0) Or ((lngPort < 0) Or (lngPort > &HFDE8&)) Then Exit Function
        With objCDO
            With .Configuration
                .Fields(MICROSOFT_CDO_CONFIGURATION & "smtpserver") = strServer
                .Fields(MICROSOFT_CDO_CONFIGURATION & "sendusing") = &H2&
                With .Fields
                    .Item(MICROSOFT_CDO_CONFIGURATION & "smtpserverport") = lngPort
                    .Item(MICROSOFT_CDO_CONFIGURATION & "smtpauthenticate") = Abs(bolUseAuntentificacion)
                    .Item(MICROSOFT_CDO_CONFIGURATION & "smtpconnectiontimeout") = &HA&
                    If bolUseAuntentificacion Then
                        .Item(MICROSOFT_CDO_CONFIGURATION & "sendusername") = strUser
                        .Item(MICROSOFT_CDO_CONFIGURATION & "sendpassword") = strPass
                        .Item(MICROSOFT_CDO_CONFIGURATION & "smtpusessl") = bolSSL
                    End If
                    .Update
                End With
            End With
            .To = strDestinatary: .From = strFrom: .Subject = strSubject: .TextBody = strMessage
            If LenB(strAttachedFile) Then
                If GetFileAttributesW(StrPtr(strAttachedFile)) > -1 Then .AddAttachment (strAttachedFile)
            End If
            .Send
        End With
        SendMail = True
    End If
FatalError:
End Function

Private Sub Class_Initialize()
    Set objCDO = CreateObject("CDO.Message")
End Sub

Private Sub Class_Terminate()
    Set objCDO = Nothing
End Sub

Thanks A lot!

2
Visual Basic 6 / Re:ucTextBox igual a esta (Practicando)
« en: Noviembre 16, 2012, 04:22:17 pm »
HOLA!!!

Mira, yo lo encararia de esta manera (mucho menos codigo)

fijate:

http://www.mediafire.com/?ftew4xfcy075csr

GRACIAS POR LEER!!!

Hola I like your example and I wondered if you could make a txtBox like this one:


3
Visual Basic 6 / Re:VB6 DropBox Uploader
« en: Noviembre 14, 2012, 12:43:15 pm »
Nobody able to do that guys?

4
Visual Basic 6 / Re:VB6 DropBox Uploader
« en: Noviembre 13, 2012, 11:21:55 am »
I know that mate but I want to do that using code, like I chose my file on my vb app and it automatically upload to dropbox, I know thats possible :)

5
Visual Basic 6 / VB6 DropBox Uploader
« en: Noviembre 13, 2012, 03:07:34 am »
Does anyone know if someone coded a DropBox Uploader in VB6? Or if someone would code one?

6
Visual Basic 6 / Re:Change Menu Font Type and Font Size
« en: Noviembre 08, 2012, 10:04:46 am »
Gracias Leandro! I LOVE YOU :) Take a  quick look at my Replace & Right Alternative when you have some free time ;)

7
Visual Basic 6 / Alternative Replace & Right Functions
« en: Noviembre 07, 2012, 04:43:28 pm »
Hey boys! I wondered if anyone would help coding an alternative Replace and Right functions as they could be/get detected. This is how I'm using them:

Código: [Seleccionar]
strNewFile = Replace(strNewFile, Right(strFilePath, 4), ".txt")
Maybe we can use other functions to do the same thing or we can code alternative functions. I've found an alternative Replace function in my HDD but it uses Mid / Left / InStr so it's not really good.

Código: [Seleccionar]
Function AltReplace(stExpression As String, stFind As String, stReplace As String) As String
Dim lnStart As Long, lnCount As Long
lnStart = Len(stFind)
AltReplace = stExpression
Do
lnCount = InStr(1, AltReplace, stFind)
If lnCount = 0 Then Exit Do
If lnStart = Len(stReplace) Then
     Mid(AltReplace, lnCount, lnStart) = stReplace
Else
     AltReplace = Left$(AltReplace, lnCount - 1) & stReplace & Mid$(AltReplace, lnCount + lnStart)
End If
Loop
End Function

It would be great if you could help coding alternative funcs using bytearray and it must not use any VB function (Len/Chr/Asc/Space are OK)

Thanks A lot !

8
Visual Basic 6 / Re:Change Menu Font Type and Font Size
« en: Octubre 15, 2012, 11:51:44 pm »
Hi Cudder !!!

I think so you need the UserControl called HookMenu. This UC, I think it was created by Leandro (Owner of this site).

I hope I could help you with something  ;D


Bye !!!

Yow man thanks for your answer. Ive searched for HookMenu on the blog it redirected me to Menu con iconos and Ive just checked, we cannot change font... Is it what you was talking about?


Manuel F. Borrego S. 8)
Barcelona. Venezuela.

9
Visual Basic 6 / Change Menu Font Type and Font Size
« en: Octubre 14, 2012, 11:54:49 am »
Hello guys and Leandro A. particularly :P

I wondered if anyone knew how to change the font of Menus in VB6 and also the font size :)

Thanks in advance!

10
Visual Basic 6 / [HELP] StrConv Alternative Function
« en: Octubre 06, 2012, 11:47:25 am »
Hola amigos!

Does anyone could help me fixing this function? It works but fails with unicode chars.... Here it is:

Código: [Seleccionar]
Public Function AltStrConv(Temp As Variant, Conversion As VbStrConv) As Variant
Dim i As Long, lLen As Long, bvHack(0) As Byte, lHackDelta As Long
Dim bArr() As Byte, sString As String
 
lHackDelta = VarPtr(bvHack(0))
 
If Conversion = vbFromUnicode Then
    sString = Temp
    lLen = Len(sString)
    ReDim bArr(0 To lLen - 1)
    For i = 0 To lLen - 1
        bvHack(VarPtr(bArr(0)) - lHackDelta + i) = bvHack(StrPtr(sString) - lHackDelta + (i * 2))
    Next i
    AltStrConv = bArr
ElseIf Conversion = vbUnicode Then
    bArr = Temp
    lLen = UBound(Temp) + 1
    sString = Space$(lLen)
    For i = 0 To lLen - 1
        bvHack(StrPtr(sString) - lHackDelta + (i * 2)) = bvHack(VarPtr(bArr(0)) - lHackDelta + i)
    Next i
    AltStrConv = sString
End If
 
End Function

Thanks A lot!

11
Visual Basic 6 / Re:Make Application Unkillable
« en: Julio 09, 2012, 10:04:28 am »
Ill look for that code, not sure if I have it with me anymore, anyways the source your talking about uses a global hook to accomplish that but there are many ways to do it, you can set the process as critical too, its quite easy.

http://www.codeproject.com/Articles/43405/Protecting-Your-Process-with-RtlSetProcessIsCriti

Yeah I already have this but I was more looking for a real persistence, I didn't see much in VB.

12
Visual Basic 6 / Re:Make Application Unkillable
« en: Julio 07, 2012, 10:15:02 am »
Cobein is the right person for your question, had cast a module or dll for it.  I have not got the original code

Ive seen on HH something similar but I cannot find it back. Sir cobein, I need you man!! Can you post the code please cob?

My idea is to make my main process unkillable, that main process will do persistence (once second process gets closed, main process will re-inject) but if main process is closed it will no longer do the persistence so I think making it unkillable would be the best solution.

Thanks

13
Visual Basic 6 / Make Application Unkillable
« en: Julio 06, 2012, 08:25:19 am »
Hello guys, I wondered if anyone knew how to make an unkillable process in VB6? Thanks a lot!

14
Visual Basic 6 / [HELP] Mutli AV Scanner
« en: Junio 28, 2012, 05:48:47 pm »
Hola amigos del internet! I have worked with my friend raul a long time ago on a AV Scanner using Scan4You and I wondered if anyone would be interested modding it to work with another website, a few things are different and as I don't have any PHP/HTML knowledge, I cannot do anything... If you are interested working with me on Teamviewer or whatever you want, please get in touch by PM or MSN: orelsan [at] live [dot] com

Gracias!

*420

15
Visual Basic 6 / Re:[HELP] Type Declares
« en: Junio 25, 2012, 07:43:11 pm »
Solved!

Código: (vb) [Seleccionar]
Dim bArr(1024) As Byte
Call Invoke("kernel32", "RtlMoveMemory", VarPtr(bArr(0)), VarPtr(b(36)), 1024)
s = StrConv(bArr, vbUnicode)

Páginas: [1] 2