Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reg Entry

Featured Replies

Posted

grr ....

i have a weird problem here ...

i was trying to enter a userinput into registry ...

.data

REG_PATH db 'SOFTWARE\xxx\xxxx\xxxxx\',0

REG_SUB_KEY0 db 'UserName',0

REG_SUB_KEY1 db 'UserCompany',0

REG_VAL0 db ' starzboy',0

REG_VAL1 db ' starzboy',0

.data?

hKey PHKEY ?

buffer db 512 dup(?)

buffer1 db 512 dup(?)

invoke GetDlgItemText,hwnd,10021,ADDR buffer,512 ----> copy to 1st buffer

invoke GetDlgItemText,hwnd,10022,ADDR buffer1,512 ----> copy to 2nd buffer

invoke RegCreateKey,HKEY_LOCAL_MACHINE,addr REG_PATH,addr hKey ----> make the key

invoke RegSetValueEx,hKey,addr REG_SUB_KEY0,0,REG_SZ,addr buffer,SIZEOF buffer ----> save 1st input

invoke RegSetValueEx,hKey,addr REG_SUB_KEY1,0,REG_SZ,addr buffer1,SIZEOF buffer1 ----> save 2nd input

invoke RegCloseKey, hKey ------> close key

the values are succesfully written to the registry .... but the appz dosent detect it untill i write it manually ...

and when the values are written in registry[for eg. starzboyj] they are seen as "starzboyj..."

ttv4.png

so i was wondering what could be the problem ....

Edited by starzboy

listen this is the right way :)

but the problem could be that the keys should be created in the

HKEY_LOCAL_MACHINE

key File in most apps and you didn't notice that ?

but some other apps needs them in other keys like

HKEY_CURRENT_USER

so perhaps you should be careful for this important situation

and one more thing check please the Key File (For User And Name)

and see what is it's kind ? like

String Value

Binary Value

DWORD Value.......ect

Edited by Angel-55

  • Author

nah ... i tested em all ...

the place where i pyt them is right place in HKEY_LOCAL_MACHINE

and its a string value ...

anyways thanks for seeing

Edited by starzboy

that's ok but listen

i got another thing perhaps this application doesn't search for the Registration at startup ??

this could be the Problem

there are some apps that doesn't check the registry for registration

it might check it in another file like *ini files or *.dat files that where

created after you've registred the app ...........!!

Edited by Angel-55

Hi starz,

I think you have to give the exact length of the string and not the total size of the buffer

invoke GetDlgItemText,hwnd,10021,ADDR buffer,512 ----> copy to 1st buffer
invoke GetDlgItemText,hwnd,10022,ADDR buffer1,512 ----> copy to 2nd buffer
invoke RegCreateKey,HKEY_LOCAL_MACHINE,addr REG_PATH,addr hKey ----> make the keyinvoke strlen, addr buffer
add eax, 1; To take in account the terminater '\0'
invoke RegSetValueEx,hKey,addr REG_SUB_KEY0,0,REG_SZ,addr buffer, eax <- change to eaxinvoke strlen, addr buffer1
add eax, 1
invoke RegSetValueEx,hKey,addr REG_SUB_KEY1,0,REG_SZ,addr buffer1,eax <- change to eaxinvoke RegCloseKey, hKey ------> close key
  • Author

@angel ...

the app has to be "cracked to run " .... it reads key to say "Registered to: xyz"

@jstorme

dosent work ...

but i think i needs the exact lenght of string ...

lemme try again ...

Edited by starzboy

  • Author

@jstorme

hi bro ... thanc for tip ... got it working ...

invoke GetDlgItemText,hwnd,10021,ADDR buffer,512

invoke GetDlgItemText,hwnd,10022,ADDR buffer1,512

invoke RegCreateKey,HKEY_LOCAL_MACHINE,addr REG_PATH,addr hKey

add buffer,1

invoke RegSetValueEx,hKey,addr REG_SUB_KEY0,0,REG_SZ,addr buffer, buffer

add buffer,1

invoke RegSetValueEx,hKey,addr REG_SUB_KEY1,0,REG_SZ,addr buffer1,buffer

invoke RegCloseKey, hKey

tahnx angel also

cya

here are some usefull registry funtions for masm

masm.registry.functions.rar

  • Author

@Dibolo ... thanx

This is a nice info diablo2oo2, who knows i need this someday.... :D

aNtRoBs

when using SIZEOF BUFFER you must always do SIZEOF BUFFER-1

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.