Menú

Mostrar Mensajes

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

Mostrar Mensajes Menú

Mensajes - Psyke1

#801
Foro Libre / Re: 10 que no debes hacer...
30 Julio 2010, 01:51 AM
Bufff, demasiadas proibiciones...  :laugh: :laugh: :laugh: :laugh:
El de las drogas me hizo mucha gracia!!   :xD

DoEvents¡!
:P
#802
Hola, bueno aqui os traigo este buscador de adminpaths, no es que me apasione el tema del Deface y esas cosas, pero en fin... :P
Aviso de antemano que no tengo ni idea de esto, si veis cualquier cosa decidmela... ;)

Código (vb) [Seleccionar]

'----------------------------------------------------------------------------------------
' *Module  : mCheckAdminPath.bas
' *Author  : *PsYkE1*
' *Mail    : vbpsyke1@mixmail.com
' *Date    : 28/7/10
' *Purpose : Search admin paths of a Website
' *Greets  : xassiz
' *Web     : http://foro.rthacker.net
' *References : http://xassiz.blogspot.com/2009/12/tool-xassiz-pathfinder-by-xassiz.html
'----------------------------------------------------------------------------------------

Option Explicit

Public Function Check_Admin_Path(ByVal sWebSite As String) As String
   Dim sPosiblePath()          As String
   Dim sPosiblePass()          As String
   Dim sActualPath             As String
   Dim lTotalPosiblePass       As Long
   Dim lTotalPosiblePaths      As Long
   Dim y                       As Long
   Dim x                       As Long
   
   Const Paths As String = "admin/,paneldecontrol/,login/,adm/,cms/,admon/,administrador/,admin/login.php,ADMIN/login.php,admin/home.php,admin/controlpanel.html,admin/controlpanel.php,admin.php,admin.html,admin/cp.php,admin/cp.html,cp.php,cp.html,controlpanel/,panelc/,administrator/index.php,administrator/login.html,administrator/login.php,administrator/account.html," _
& "administrator/account.php,administrator.php,administrator.html,login.php,login.html,modelsearch/login.php,moderator.php,moderator.html,moderator/login.php,moderator/login.html,moderator/admin.php,moderator/admin.html,moderator/,account.php,account.html,controlpanel/," _
& "admin/index.asp,admin/login.asp,admin/home.asp,admin/controlpanel.asp,admin.asp,admin/cp.asp,cp.asp,administrator/index.asp,administrator/login.asp,administrator/account.asp,administrator.asp,login.asp,modelsearch/login.asp,moderator.asp,moderator/login.asp,moderator/admin.asp,account.asp," _
& "controlpanel.asp,admincontrol.asp,adminpanel.asp,fileadmin/,fileadmin.php,fileadmin.asp,fileadmin.html,administration/,administration.php,administration.html,sysadmin.php,sysadmin.html,phpmyadmin/,myadmin/,sysadmin.asp,sysadmin/,ur-admin.asp,ur-admin.php,ur-admin.html,ur-admin/,Server.php,Server.html,Server.asp,Server/,wp-admin/,administr8.php,administr8.html," _
& "administr8/,administr8.asp,webadmin/,webadmin.php,webadmin.asp,webadmin.html,administratie/,admins/,admins.php,admins.asp,admins.html,administrivia/,Database_Administration/,WebAdmin/,sysadmins/,admin1/,system-administration/,administrators/,pgadmin/,directadmin/,staradmin/,ServerAdministrator/,SysAdmin/,administer/,sys-admin/,typo3/," _
& "panel/,cpanel/,cPanel/,cpanel_file/,platz_login/,rcLogin/,blogindex/,formslogin/,autologin/,support_login/,meta_login/,manuallogin/,simpleLogin/,loginflat/,utility_login/,showlogin/,memlogin/,members/,login-redirect/,sub-login/,wp-login/,login1/,dir-login/,login_db/,xlogin/,smblogin/,customer_login/,login-us/,acct_login/,admin_area/,bigadmin/,project-admins/,phppgadmin/,pureadmin/," _
& "sql-admin/,radmind/,openvpnadmin/,wizmysqladmin/,vadmind/,ezsqliteadmin/,pwebjetadmin/,newsadmin/,adminpro/,Lotus_Domino_Admin/,bbadmin/,vmailadmin/,Indy_admin/,ccp14admin/,irc-macadmin/,banneradmin/,sshadmin/,phpldapadmin/,macadmin/,administratoraccounts/,admin4_account/,admin4_colon/,radmind-1/,Super-Admin/,AdminTools/,cmsadmin/,SysAdmin2/,globes_admin/,cadmins/,phpSQLiteAdmin/,navSiteAdmin/,server_admin_small/," _
& "logo_sysadmin/,server/,database_administration/,ADMIN/login.html,system_administration/,ss_vms_admin_sm/"
   
   Const Pass As String = "username/,usuario/,user/,password/,contraseña/,senha/,pass/,pwd/,psswrd/"
   
   If Len(sWebSite) > 0 Then
       If Right$(sWebSite, 1) <> "/" Then sWebSite = sWebSite & "/"
       
       sPosiblePass() = Split(Pass, ",")
       sPosiblePath() = Split(Paths, ",")
       lTotalPosiblePass = UBound(sPosiblePass())
       lTotalPosiblePaths = UBound(sPosiblePath())
       
       If Check_Web_Exists(sWebSite) = True Then
           For x = 0 To lTotalPosiblePaths
               sActualPath = sWebSite & sPosiblePath(x)
               If Check_Web_Exists(sActualPath) = True Then
                   For y = 0 To lTotalPosiblePass
                       sActualPath = sWebSite & sPosiblePath(x) & sPosiblePass(y)
                       If Check_Web_Exists(sActualPath) = True Then
                           Check_Admin_Path = sActualPath
                           Exit Function
                       End If
                   Next
               End If
           Next
       End If
   End If
End Function

Function Check_Web_Exists(ByVal sURL As String) As Boolean
   Dim oXHTTP          As Object
   Set oXHTTP = CreateObject("MSXML2.XMLHTTP")

   If Not UCase$(sURL) Like "HTTP:*" Then sURL = "http://" & sURL
   
   On Error GoTo Error_
   With oXHTTP
       .Open "HEAD", sURL, False
       .Send
       If .Status = 200 Then Check_Web_Exists = True
   End With
   
   Set oXHTTP = Nothing
   Exit Function
Error_:
End Function


Un ejemplo:
Código (vb) [Seleccionar]
Private Sub Form_Load()
   Dim sWeb        As String
   Dim sResult     As String
   
   sWeb = "http://www.xxxxxxxxxxx.net"
   sResult = Check_Admin_Path(sWeb)
   
   If Len(sResult) > 0 Then
       Debug.Print sResult
   Else
       Debug.Print "Not Found... :("
   End If
End Sub


Devuelve por ejemplo:
Citarhttp://www.xxxxxxxxxxx.net/system-administration/pwd/

DoEvents¡! :P
#803
Ok muchas gracias¡! ;-)

DoEvents¡! :P
#804
Cita de: Karcrack en 29 Julio 2010, 01:15 AM
http://www.leandroascierto.com.ar/categoria/M%C3%B3dulos/articulo/Google%20Traductor.php

Saludos ;)
Wow  :o
Gracias tío!  ;)
No habia visto el ejemplo, voy ha hecharle un vistazo... :D

DoEvents¡! :P
#805
Código (vb) [Seleccionar]
'-------------------------------------------------------
' *Module  : mTranslator
' *Author  : *PsYkE1*
' *Mail    : vbpsyke1@mixmail.com
' *Date    : 27/7/10
' *Purpose : Translate any text using Google Translator
' *Web     : http://foro.rthacker.net
'-------------------------------------------------------

Option Explicit

Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
Declare Function InternetOpenUrl Lib "wininet" Alias "InternetOpenUrlA" (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
Declare Function InternetReadFile Lib "wininet" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer
Declare Function InternetCloseHandle Lib "wininet" (ByVal hInet As Long) As Integer

Public Const IF_NO_CACHE_WRITE = &H4000000

Public Function Get_Html_Code(sURL As String) As String
    Dim sBuffer         As String * 1000
    Dim lInternet       As Long
    Dim lFile           As Long
    Dim lRead           As Long

    lInternet = InternetOpen(0, 1, vbNullString, vbNullString, 0)
    If lInternet <> 0 Then
        lFile = InternetOpenUrl(lInternet, sURL, vbNullString, 0, IF_NO_CACHE_WRITE, 0)
        If lFile <> 0 Then
            Do
                Call InternetReadFile(lFile, sBuffer, 1000, lRead): DoEvents
                Get_Html_Code = Get_Html_Code & Left$(sBuffer, lRead)
            Loop While lRead <> 0
        End If
        Call InternetCloseHandle(lInternet)
    End If
End Function

Public Function Simplified_Language(ByVal sLenguage As String) As String

    sLenguage = LCase$(sLenguage)

    Select Case sLenguage
        Case "albanian":        Simplified_Language = "sq"
        Case "german":          Simplified_Language = "de"
        Case "armenian":        Simplified_Language = "hy"
        Case "bulgarsk":        Simplified_Language = "bg"
        Case "greek":           Simplified_Language = "el"
        Case "dutch":           Simplified_Language = "nl"
        Case "polish":          Simplified_Language = "pl"
        Case "portuguese":      Simplified_Language = "pt"
        Case "spanish":         Simplified_Language = "es"
        Case "swedish":         Simplified_Language = "sv"
        Case "czech":           Simplified_Language = "cs"
        Case "german":          Simplified_Language = "de"
        Case Else
            Simplified_Language = Left$(sLenguage, 2)
        End Select
End Function

Public Function Text_Between_Words(ByVal sTextToAnalyze As String, ByVal sStartWord As String, ByVal sEndWord As String) As String
    Dim lPosition1             As Double
    Dim lPosition2             As Double
    Dim lStart                 As Double

    lPosition1 = InStr(sTextToAnalyze, sStartWord)
    If lPosition1 <> 0 Then
        lStart = lPosition1 + Len(sStartWord)
        lPosition2 = InStr(lStart, sTextToAnalyze, sEndWord)
    Else
        Exit Function
    End If
    If lPosition2 <> 0 Then Text_Between_Words = Mid$(sTextToAnalyze, lStart, lPosition2 - lStart)
End Function

Public Function Translate_Text(ByVal sTextToTranslate As String, ByVal sActualLenguage As String, ByVal sFutureLenguage As String) As String
    Const sGoogleTransUrl As String = "http://translate.google.com/?js=y&prev=_t&hl=es&ie=UTF-8&layout=1&eotf=1&text="

    '# Delimiters
    Const START_TRANSLATED_TEXT        As String = "onmouseout=""this.style.backgroundColor='#fff'"">"
    Const END_TRANSLATED_TEXT          As String = "<br>"

    Dim sGoogleHtml As String

    If sActualLenguage <> sFutureLenguage Then
        sTextToTranslate = Replace$(sTextToTranslate, Chr$(32), "%20")
        sActualLenguage = Simplified_Language(sActualLenguage)
        sFutureLenguage = Simplified_Language(sFutureLenguage)

        sGoogleHtml = Get_Html_Code(sGoogleTransUrl & sTextToTranslate & "%0D%0A%0D%0A&file=&sl=" & sActualLenguage & "&tl=" & sFutureLenguage & "#submit")

        Translate_Text = RTrim$(Text_Between_Words(sGoogleHtml, START_TRANSLATED_TEXT, END_TRANSLATED_TEXT))
    Else
        Translate_Text = sTextToTranslate
    End If
End Function


An example:
Código (vb) [Seleccionar]
Debug.Print Translate_Text("Hoy estoy un poco cansado, pero creo que este proyecto sera grande.", "spanish", "english")

It returns:
CitarToday I am a little tired, but I think this project will be great.

DoEvents¡! :P
#806
Ya lo probe, y tampoco me funciona... :-(
Segun me dice xkiz:
Citartenes que convetir el texto a UTF-8
Alguna idea de como hacer esto?¿  :silbar:

Sleep¡! :-*
#807
No funciona  :(
Me pasa igual... ademas la cosa es que no queria depender de OCX... :silbar:
Vi por ahi un modulo de Cobein, que hace algo similar, pero no encuentro un RichtTextBox.cls... :-(

PD: ¿De que vas copiandome el saludo?  >:( :laugh:

DoEvents¡! :P
#808
¿Como hago para poder leer caracteres especiales en un TextBox?
Necesito agregar algo asi por ejemplo:
Citarनमस्ते, आपका नाम क्या है

Muchas gracias :D

DoEvents¡! :P
#809
Foro Libre / Re: Jake and Amir
28 Julio 2010, 03:05 AM
JJJJJJJJJJJJAAAAAAAAAJAJAJAJAJAJ
Buf no los conocia, me hicieron bastante gracia, pero he de admitir que a veces me costaba seguir el ritmo (por el ingles  :-\)

DoEvents¡!
:P
#810
Buff, espero que no me llameis pesado  :laugh:, pero esta es mi RegExp para hacer EXACTAMENTE lo que hace la funcion que postee:
Citar((\-)?\d+(([\.,']\d+)+)?)
Claro que no incluye validacion como la que hizo Raul...  :-\
Predon por revivir post... :-* ;)

DoEvents¡! :P