Search found 24 matches

by lisa_beille
Tue Jan 09, 2024 9:28 am
Forum: Coding Questions
Topic: strange behaviour StatusBar on ListViewGadget
Replies: 9
Views: 1335

Re: strange behaviour StatusBar on ListViewGadget


A basic 'starter':

CompilerIf #PB_Compiler_IsMainFile
EnableExplicit
CompilerEndIf


Structure FlexStatusBarGadget_Structure
List FieldList.i()
EndStructure



Procedure.i FlexStatusBarGadget(Gadget.i, Height.i, ParentGadget.i)

Protected.i NewGadget, x, y, width
Protected ...
by lisa_beille
Mon Jan 08, 2024 8:21 pm
Forum: Coding Questions
Topic: strange behaviour StatusBar on ListViewGadget
Replies: 9
Views: 1335

Re: strange behaviour StatusBar on ListViewGadget

But what if I really want the statusbar to be attached to the listview ? say for instance the listview doesn't take all the window's space ? is it possible to specify the statusbar's 'left' position and witdth ?
thanks
by lisa_beille
Mon Jan 08, 2024 8:17 pm
Forum: Coding Questions
Topic: strange behaviour StatusBar on ListViewGadget
Replies: 9
Views: 1335

Re: strange behaviour StatusBar on ListViewGadget

Thank you all for your answers :D
by lisa_beille
Sun Jan 07, 2024 7:49 pm
Forum: Coding Questions
Topic: strange behaviour StatusBar on ListViewGadget
Replies: 9
Views: 1335

strange behaviour StatusBar on ListViewGadget

Hello
When adding a statusbar to a listviw gadget, a strange behaviour appears when scrolling the listview :

Normal statusbar

https://ibb.co/yPxVMKQ


When scrolling :


https://ibb.co/TRTrFRJ



my code :


If OpenWindow(0,0,0,800,400,"", #PB_Window_ScreenCentered|#PB_Window_SystemMenu ...
by lisa_beille
Fri Jan 05, 2024 12:06 am
Forum: Coding Questions
Topic: ExamineDirectory() not displaying all files ?
Replies: 9
Views: 1539

Re: ExamineDirectory() not displaying all files ?



and how to show hidden files in examineDirectory() then ??


ExamineDirectory() does show hidden directory entries.
First step is to use a bit more detailed code snippet:

Define.i files, dirs, hf, hd

If ExamineDirectory(0, "c:\windows\system32", "*.*")
While NextDirectoryEntry(0)
If ...
by lisa_beille
Fri Jan 05, 2024 12:04 am
Forum: Coding Questions
Topic: ExamineDirectory() not displaying all files ?
Replies: 9
Views: 1539

Re: ExamineDirectory() not displaying all files ?



and how to show hidden files in examineDirectory() then ??


ExamineDirectory() does show hidden directory entries.
First step is to use a bit more detailed code snippet:

Define.i files, dirs, hf, hd

If ExamineDirectory(0, "c:\windows\system32", "*.*")
While NextDirectoryEntry(0)
If ...
by lisa_beille
Thu Jan 04, 2024 7:54 pm
Forum: Coding Questions
Topic: ExamineDirectory() not displaying all files ?
Replies: 9
Views: 1539

Re: ExamineDirectory() not displaying all files ?

Mindphazer wrote: Thu Jan 04, 2024 7:26 pm No problem here.
ExamineDirectory returns 4178 files
Dir returns 4045 Files and 124 directories. I guess there are hidden files
and how to show hidden files in examineDirectory() then ??
by lisa_beille
Thu Jan 04, 2024 7:12 pm
Forum: Coding Questions
Topic: ExamineDirectory() not displaying all files ?
Replies: 9
Views: 1539

ExamineDirectory() not displaying all files ?

Hello
I've just noticed that when I list the files of c:\windows\system32\*.* with dir command i get 4391 files and 139 folders
But when i use ExamineDirectory() it shows only 2898 entries !!

What could be the issue and how to fix it ? Thanks

Here's my code :



If ExamineDirectory(0, "c ...
by lisa_beille
Thu Jan 04, 2024 9:51 am
Forum: Coding Questions
Topic: HTTP / HTTPS Proxy in Purebasic
Replies: 18
Views: 3337

Re: HTTP / HTTPS Proxy in Purebasic


You are not creating an other PB Virus I hope? Decrypting passwords and intercepting https-traffic..? :-|


hhh no actually i study computer security. for traffic interception it's for the project i'm working on. as for chrome password decrypting it has nothing to do with a virus, i'm just ...
by lisa_beille
Wed Jan 03, 2024 9:28 am
Forum: Coding Questions
Topic: Purebasic AES - GCM encryption
Replies: 0
Views: 777

Purebasic AES - GCM encryption

hello all
Purebasic apparently doesn't support AES with GCM mode. I found this C++ code to decrypt a buffer with AES-GCM using Bcrypt library.
can anyone help me translate it to PB ?
Thans you all


std::string AESDecrypter(std::string EncryptedBlob, DATA_BLOB MasterKey)
{
BCRYPT_ALG_HANDLE ...
by lisa_beille
Wed Jan 03, 2024 12:15 am
Forum: Coding Questions
Topic: chrome password decrypter
Replies: 9
Views: 2711

Re: chrome password decrypter

The problem is that PB does not support AES-GCM mode.
i found this C++ code, if anyone can help me convert it to PB, it would be very kind :


std::string AESDecrypter(std::string EncryptedBlob, DATA_BLOB MasterKey)
{
BCRYPT_ALG_HANDLE hAlgorithm = 0;
BCRYPT_KEY_HANDLE hKey = 0;
NTSTATUS status ...
by lisa_beille
Mon Jan 01, 2024 11:46 pm
Forum: Coding Questions
Topic: chrome password decrypter
Replies: 9
Views: 2711

Re: chrome password decrypter

So now my question becomes : How to use Bcrypt library functions like BCryptOpenAlgorithmProvider in PB
by lisa_beille
Mon Jan 01, 2024 11:24 pm
Forum: Coding Questions
Topic: chrome password decrypter
Replies: 9
Views: 2711

Re: chrome password decrypter



There are things missing. Especially the type and structure of the `master_key` variable and the function `CryptUnprotectData`. Besides that you should avoid using `CallFunctionFast()` and instead use Prototypes.


the master key is of type pdata (see code).
i don't understand what's wrong ...
by lisa_beille
Mon Jan 01, 2024 8:42 pm
Forum: Coding Questions
Topic: chrome password decrypter
Replies: 9
Views: 2711

Re: chrome password decrypter


There are things missing. Especially the type and structure of the `master_key` variable and the function `CryptUnprotectData`. Besides that you should avoid using `CallFunctionFast()` and instead use Prototypes.


the master key is of type pdata (see code).
i don't understand what's wrong since ...
by lisa_beille
Mon Jan 01, 2024 5:56 pm
Forum: Coding Questions
Topic: chrome password decrypter
Replies: 9
Views: 2711

Re: chrome password decrypter



How about more information? Where's the Python code that has succeeded? And where is the Purebasic code that has not?


+1

here is the Purebasic code :

this function gets and decrypts the master key :
;
Structure pdata
cbdata.l
pbdata.l
EndStructure

Procedure get_secret_key ...