Does PureBasic insert an identifier in your executables?

Just starting out? Need help? Post your questions and find answers here.
toledo
User
User
Posts: 19
Joined: Thu Jan 14, 2010 8:55 pm

Does PureBasic insert an identifier in your executables?

Post by toledo »

Microsoft Visual Basic inserts an identifier into the header of each executable it compiles so that anyone who knows where to look can see it was written in Microsoft Visual Basic. Microsoft Visual C++ does the same thing. Does PureBasic also insert an identifier into the header of it's executable when they are compiled?
Nituvious
Addict
Addict
Posts: 1027
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: Does PureBasic insert an identifier in your executables?

Post by Nituvious »

The only thing I am aware of is when you use PureBasic Constants you can usually find them within the executable by using a hex editor.
Like, #PB_Window_SystemMenu will appear in ASCII.
▓▓▓▓▓▒▒▒▒▒░░░░░
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: Does PureBasic insert an identifier in your executables?

Post by UserOfPure »

Nituvious wrote:Like, #PB_Window_SystemMenu will appear in ASCII.
No it doesn't. Where did you get that idea? None of my executables have it.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Does PureBasic insert an identifier in your executables?

Post by c4s »

Programs like Exeinfo PE are able to detect executables that are created by PureBasic (but version number is wrong) through a signature - but I don't know exactly how this works. ;)
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Re: Does PureBasic insert an identifier in your executables?

Post by JCV »

PB does not insert identifier in exe.
But you can identify it easily if you can see PB_ prefix on some PB functions used.

Image

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
Nituvious
Addict
Addict
Posts: 1027
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: Does PureBasic insert an identifier in your executables?

Post by Nituvious »

UserOfPure wrote:No it doesn't. Where did you get that idea? None of my executables have it.
Image
Yeah.
▓▓▓▓▓▒▒▒▒▒░░░░░
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: Does PureBasic insert an identifier in your executables?

Post by UserOfPure »

Don't "yeah" me. I was referring to what I directly quoted; that which you mentioned, the text: #PB_Window_SystemMenu. :roll: Do a search for that and it's not there. In fact, NO PureBasic constants are there (search for #Red, #PB_Gadget_BackColor, etc) and you'll see. Because you did say (bold mine):
Nituvious wrote:The only thing I am aware of is when you use PureBasic Constants you can usually find them within the executable by using a hex editor.
What say ye now?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Does PureBasic insert an identifier in your executables?

Post by Trond »

Nituvious wrote:
UserOfPure wrote:No it doesn't. Where did you get that idea? None of my executables have it.
Image
Yeah.
Those are not constants, they are functions. :roll:
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: Does PureBasic insert an identifier in your executables?

Post by UserOfPure »

Exactly my point. Thank you.
Nituvious
Addict
Addict
Posts: 1027
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: Does PureBasic insert an identifier in your executables?

Post by Nituvious »

I pulled an all nighter, you have to excuse my mistakes. That was what the "Yeah." was about. I was acknowledging my own mishap. :lol:
▓▓▓▓▓▒▒▒▒▒░░░░░
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: Does PureBasic insert an identifier in your executables?

Post by UserOfPure »

I thought the "yeah" was "yeah, you're wrong". No problem. It's cool. These things happen.
User avatar
greyhoundcode
Enthusiast
Enthusiast
Posts: 112
Joined: Sun Dec 30, 2007 7:24 pm

Re: Does PureBasic insert an identifier in your executables?

Post by greyhoundcode »

UserOfPure, Nituvious, shall we have a group hug?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Does PureBasic insert an identifier in your executables?

Post by freak »

Trond wrote:
Nituvious wrote:
UserOfPure wrote:No it doesn't. Where did you get that idea? None of my executables have it.
Image
Yeah.
Those are not constants, they are functions. :roll:
Nope, they are window property names :P


PB does not insert any signature for identification. But there is no attempt to hide the fact that the program is written in PB either, so it should be easy to detect trough strings like these which are prefixed with "PB_" to avoid any conflicts.
quidquid Latine dictum sit altum videtur
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Does PureBasic insert an identifier in your executables?

Post by c4s »

freak wrote:PB does not insert any signature for identification.
Do you know how these signature scan tools work? Why does for example "exeinfo PE" (see my post above) know that an application was build using PureBasic, C++, etc.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Re: Does PureBasic insert an identifier in your executables?

Post by eesau »

ExeInfo probably just scans the executable for PB_* strings.
Post Reply