Re: [go-nuts] Is it possible to build a Go binary without the runtime ?

2024-01-23 Thread Jaon Dorb
نعم 


في الأربعاء، 24 يناير 2024 في تمام الساعة 2:50:40 ص UTC+3، كتب Raffaele 
Sena رسالة نصها:

Well, if it's a package/module you could build it as a library archive (go 
build -buildmode=archive) and then disassemble/decompile the library.


On Tue, Jan 23, 2024 at 3:18 PM Def Ceb  wrote:

No, this is not possible. This is the case for practically every other 
language, even C. Unless you intend on inspecting assembly text instead 
of a real working binary.
The symbol table + debug symbols built into the binary by default should 
make finding the `main.main` function trivial with just about any 
reverse engineering tool.

'Karolina GORNA' via golang-nuts:
> Hi everyone,
> 
> I would like to build my Go program and to reverse-engineer it. I would 
> find it easier to build it without the runtime and to statically analyse 
> only the binary of the program.
> 
> Is it possible and if yes, how please ?
> 
> Thank you for your time.
> 
> Les informations contenues dans ce message électronique ainsi que celles 
> contenues dans les documents attachés sont strictement confidentielles 
> et sont destinées à l'usage exclusif du (des) destinataire(s) nommé(s).
> Toute divulgation, distribution ou reproduction, même partielle, en est 
> strictement interdite sauf autorisation écrite et expresse de l’émetteur.
> Si vous recevez ce message par erreur, veuillez le notifier 
> immédiatement à son émetteur par retour, et le détruire ainsi que tous 
> les documents qui y sont attachés.
> 
> The information contained in this email and in any document enclosed is 
> strictly confidential and is intended solely for the use of the 
> individual or entity to which it is addressed.
> Partial or total disclosure, distribution or reproduction of its 
> contents is strictly prohibited unless expressly approved in writing by 
> the sender.
> If you have received this communication in error, please notify us 
> immediately by responding to this email, and then delete the message and 
> its attached files from your system.
> 
> 
> -- 
> You received this message because you are subscribed to the Google 
> Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to golang-nuts...@googlegroups.com 
> .
> To view this discussion on the web visit 
> 
https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com
 
<
https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com?utm_medium=email&utm_source=footer
>.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.

To unsubscribe from this group and stop receiving emails from it, send an 
email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a7746ded-49cb-4a8c-aa00-e2bb8676b23a%40gmail.com
.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/dfaf2a2b-1240-4b68-bd10-e7dd05af6742n%40googlegroups.com.


Re: [go-nuts] Is it possible to build a Go binary without the runtime ?

2024-01-23 Thread Def Ceb

Ah, true.
Though you'd be limited to analyzing the assembly text instead of a 
binary. And RE typically involves tools that work on binaries rather 
than pre-compilation assembly in a text file.
Unless there's some way to convert this assembly into a working 
stand-alone .o/.obj file which could be analyzed with typical reverse 
engineering tools, then for the purposes of learning how to reverse 
engineer binaries, I'd stick to full binaries. With debug info as 
training wheels to start off with.


Raffaele Sena:
Yes, but there are tools to access the object files. I.e. you can do "go 
tool objdump module.a" and get the assembly for your module.



On Tue, Jan 23, 2024 at 4:14 PM Def Ceb > wrote:


Interesting proposition, though from what I can tell, you're just going
to end up with goobj files, a somewhat obscure internal format of the
compiler, rather than a more typical object file format.

Raffaele Sena:
 > Well, if it's a package/module you could build it as a library
archive
 > (go build -buildmode=archive) and then disassemble/decompile the
library.
 >
 >
 > On Tue, Jan 23, 2024 at 3:18 PM Def Ceb mailto:mikk.mar...@gmail.com>
 > >> wrote:
 >
 >     No, this is not possible. This is the case for practically
every other
 >     language, even C. Unless you intend on inspecting assembly
text instead
 >     of a real working binary.
 >     The symbol table + debug symbols built into the binary by default
 >     should
 >     make finding the `main.main` function trivial with just about any
 >     reverse engineering tool.
 >
 >     'Karolina GORNA' via golang-nuts:
 >      > Hi everyone,
 >      >
 >      > I would like to build my Go program and to
reverse-engineer it. I
 >     would
 >      > find it easier to build it without the runtime and to
statically
 >     analyse
 >      > only the binary of the program.
 >      >
 >      > Is it possible and if yes, how please ?
 >      >
 >      > Thank you for your time.
 >      >
 >   
  

 >      > Les informations contenues dans ce message électronique
ainsi que
 >     celles
 >      > contenues dans les documents attachés sont strictement
 >     confidentielles
 >      > et sont destinées à l'usage exclusif du (des) destinataire(s)
 >     nommé(s).
 >      > Toute divulgation, distribution ou reproduction, même
partielle,
 >     en est
 >      > strictement interdite sauf autorisation écrite et expresse de
 >     l’émetteur.
 >      > Si vous recevez ce message par erreur, veuillez le notifier
 >      > immédiatement à son émetteur par retour, et le détruire
ainsi que
 >     tous
 >      > les documents qui y sont attachés.
 >      >
 >      > The information contained in this email and in any document
 >     enclosed is
 >      > strictly confidential and is intended solely for the use
of the
 >      > individual or entity to which it is addressed.
 >      > Partial or total disclosure, distribution or reproduction
of its
 >      > contents is strictly prohibited unless expressly approved in
 >     writing by
 >      > the sender.
 >      > If you have received this communication in error, please
notify us
 >      > immediately by responding to this email, and then delete the
 >     message and
 >      > its attached files from your system.
 >      >
 >   
  

 >      >
 >      > --
 >      > You received this message because you are subscribed to
the Google
 >      > Groups "golang-nuts" group.
 >      > To unsubscribe from this group and stop receiving emails
from it,
 >     send
 >      > an email to golang-nuts+unsubscr...@googlegroups.com

 >     >
 >      > 
 >     >>.
 >      > To view this discussion on the web visit
 >      >
 >
https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com 
 


Re: [go-nuts] Is it possible to build a Go binary without the runtime ?

2024-01-23 Thread Raffaele Sena
Yes, but there are tools to access the object files. I.e. you can do "go
tool objdump module.a" and get the assembly for your module.


On Tue, Jan 23, 2024 at 4:14 PM Def Ceb  wrote:

> Interesting proposition, though from what I can tell, you're just going
> to end up with goobj files, a somewhat obscure internal format of the
> compiler, rather than a more typical object file format.
>
> Raffaele Sena:
> > Well, if it's a package/module you could build it as a library archive
> > (go build -buildmode=archive) and then disassemble/decompile the library.
> >
> >
> > On Tue, Jan 23, 2024 at 3:18 PM Def Ceb  > > wrote:
> >
> > No, this is not possible. This is the case for practically every
> other
> > language, even C. Unless you intend on inspecting assembly text
> instead
> > of a real working binary.
> > The symbol table + debug symbols built into the binary by default
> > should
> > make finding the `main.main` function trivial with just about any
> > reverse engineering tool.
> >
> > 'Karolina GORNA' via golang-nuts:
> >  > Hi everyone,
> >  >
> >  > I would like to build my Go program and to reverse-engineer it. I
> > would
> >  > find it easier to build it without the runtime and to statically
> > analyse
> >  > only the binary of the program.
> >  >
> >  > Is it possible and if yes, how please ?
> >  >
> >  > Thank you for your time.
> >  >
> >
>  
> >  > Les informations contenues dans ce message électronique ainsi que
> > celles
> >  > contenues dans les documents attachés sont strictement
> > confidentielles
> >  > et sont destinées à l'usage exclusif du (des) destinataire(s)
> > nommé(s).
> >  > Toute divulgation, distribution ou reproduction, même partielle,
> > en est
> >  > strictement interdite sauf autorisation écrite et expresse de
> > l’émetteur.
> >  > Si vous recevez ce message par erreur, veuillez le notifier
> >  > immédiatement à son émetteur par retour, et le détruire ainsi que
> > tous
> >  > les documents qui y sont attachés.
> >  >
> >  > The information contained in this email and in any document
> > enclosed is
> >  > strictly confidential and is intended solely for the use of the
> >  > individual or entity to which it is addressed.
> >  > Partial or total disclosure, distribution or reproduction of its
> >  > contents is strictly prohibited unless expressly approved in
> > writing by
> >  > the sender.
> >  > If you have received this communication in error, please notify us
> >  > immediately by responding to this email, and then delete the
> > message and
> >  > its attached files from your system.
> >  >
> >
>  
> >  >
> >  > --
> >  > You received this message because you are subscribed to the Google
> >  > Groups "golang-nuts" group.
> >  > To unsubscribe from this group and stop receiving emails from it,
> > send
> >  > an email to golang-nuts+unsubscr...@googlegroups.com
> > 
> >  >  > >.
> >  > To view this discussion on the web visit
> >  >
> >
> https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com
> <
> https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com>
> <
> https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com?utm_medium=email&utm_source=footer
> <
> https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com?utm_medium=email&utm_source=footer
> >>.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "golang-nuts" group.
> > To unsubscribe from this group and stop receiving emails from it,
> > send an email to golang-nuts+unsubscr...@googlegroups.com
> > .
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/golang-nuts/a7746ded-49cb-4a8c-aa00-e2bb8676b23a%40gmail.com
> <
> https://groups.google.com/d/msgid/golang-nuts/a7746ded-49cb-4a8c-aa00-e2bb8676b23a%40gmail.com
> >.
> >
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CANKfucame_mkBpvGf_3iH7cwr_8NeBh7BdbD43-JGooxZcfzTg%40mail.gmail.com.


Re: [go-nuts] Is it possible to build a Go binary without the runtime ?

2024-01-23 Thread Def Ceb
Interesting proposition, though from what I can tell, you're just going 
to end up with goobj files, a somewhat obscure internal format of the 
compiler, rather than a more typical object file format.


Raffaele Sena:
Well, if it's a package/module you could build it as a library archive 
(go build -buildmode=archive) and then disassemble/decompile the library.



On Tue, Jan 23, 2024 at 3:18 PM Def Ceb > wrote:


No, this is not possible. This is the case for practically every other
language, even C. Unless you intend on inspecting assembly text instead
of a real working binary.
The symbol table + debug symbols built into the binary by default
should
make finding the `main.main` function trivial with just about any
reverse engineering tool.

'Karolina GORNA' via golang-nuts:
 > Hi everyone,
 >
 > I would like to build my Go program and to reverse-engineer it. I
would
 > find it easier to build it without the runtime and to statically
analyse
 > only the binary of the program.
 >
 > Is it possible and if yes, how please ?
 >
 > Thank you for your time.
 >

 > Les informations contenues dans ce message électronique ainsi que
celles
 > contenues dans les documents attachés sont strictement
confidentielles
 > et sont destinées à l'usage exclusif du (des) destinataire(s)
nommé(s).
 > Toute divulgation, distribution ou reproduction, même partielle,
en est
 > strictement interdite sauf autorisation écrite et expresse de
l’émetteur.
 > Si vous recevez ce message par erreur, veuillez le notifier
 > immédiatement à son émetteur par retour, et le détruire ainsi que
tous
 > les documents qui y sont attachés.
 >
 > The information contained in this email and in any document
enclosed is
 > strictly confidential and is intended solely for the use of the
 > individual or entity to which it is addressed.
 > Partial or total disclosure, distribution or reproduction of its
 > contents is strictly prohibited unless expressly approved in
writing by
 > the sender.
 > If you have received this communication in error, please notify us
 > immediately by responding to this email, and then delete the
message and
 > its attached files from your system.
 >

 >
 > --
 > You received this message because you are subscribed to the Google
 > Groups "golang-nuts" group.
 > To unsubscribe from this group and stop receiving emails from it,
send
 > an email to golang-nuts+unsubscr...@googlegroups.com

 > >.
 > To view this discussion on the web visit
 >

https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com 

 
>.

-- 
You received this message because you are subscribed to the Google

Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to golang-nuts+unsubscr...@googlegroups.com
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/golang-nuts/a7746ded-49cb-4a8c-aa00-e2bb8676b23a%40gmail.com
 
.



--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f35bfc30-c54d-4d03-b1dd-09dd4ea4f45f%40gmail.com.


Re: [go-nuts] Is it possible to build a Go binary without the runtime ?

2024-01-23 Thread Raffaele Sena
Well, if it's a package/module you could build it as a library archive (go
build -buildmode=archive) and then disassemble/decompile the library.


On Tue, Jan 23, 2024 at 3:18 PM Def Ceb  wrote:

> No, this is not possible. This is the case for practically every other
> language, even C. Unless you intend on inspecting assembly text instead
> of a real working binary.
> The symbol table + debug symbols built into the binary by default should
> make finding the `main.main` function trivial with just about any
> reverse engineering tool.
>
> 'Karolina GORNA' via golang-nuts:
> > Hi everyone,
> >
> > I would like to build my Go program and to reverse-engineer it. I would
> > find it easier to build it without the runtime and to statically analyse
> > only the binary of the program.
> >
> > Is it possible and if yes, how please ?
> >
> > Thank you for your time.
> > 
> > Les informations contenues dans ce message électronique ainsi que celles
> > contenues dans les documents attachés sont strictement confidentielles
> > et sont destinées à l'usage exclusif du (des) destinataire(s) nommé(s).
> > Toute divulgation, distribution ou reproduction, même partielle, en est
> > strictement interdite sauf autorisation écrite et expresse de l’émetteur.
> > Si vous recevez ce message par erreur, veuillez le notifier
> > immédiatement à son émetteur par retour, et le détruire ainsi que tous
> > les documents qui y sont attachés.
> >
> > The information contained in this email and in any document enclosed is
> > strictly confidential and is intended solely for the use of the
> > individual or entity to which it is addressed.
> > Partial or total disclosure, distribution or reproduction of its
> > contents is strictly prohibited unless expressly approved in writing by
> > the sender.
> > If you have received this communication in error, please notify us
> > immediately by responding to this email, and then delete the message and
> > its attached files from your system.
> > 
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "golang-nuts" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> > an email to golang-nuts+unsubscr...@googlegroups.com
> > .
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com
> <
> https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com?utm_medium=email&utm_source=footer
> >.
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/a7746ded-49cb-4a8c-aa00-e2bb8676b23a%40gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CANKfucabsHWfxsMhcnPvVFhs3ePYNLH%2BNe6G0VsJQ%2BGXNyEnzA%40mail.gmail.com.


Re: [go-nuts] Is it possible to build a Go binary without the runtime ?

2024-01-23 Thread Def Ceb
No, this is not possible. This is the case for practically every other 
language, even C. Unless you intend on inspecting assembly text instead 
of a real working binary.
The symbol table + debug symbols built into the binary by default should 
make finding the `main.main` function trivial with just about any 
reverse engineering tool.


'Karolina GORNA' via golang-nuts:

Hi everyone,

I would like to build my Go program and to reverse-engineer it. I would 
find it easier to build it without the runtime and to statically analyse 
only the binary of the program.


Is it possible and if yes, how please ?

Thank you for your time.

Les informations contenues dans ce message électronique ainsi que celles 
contenues dans les documents attachés sont strictement confidentielles 
et sont destinées à l'usage exclusif du (des) destinataire(s) nommé(s).
Toute divulgation, distribution ou reproduction, même partielle, en est 
strictement interdite sauf autorisation écrite et expresse de l’émetteur.
Si vous recevez ce message par erreur, veuillez le notifier 
immédiatement à son émetteur par retour, et le détruire ainsi que tous 
les documents qui y sont attachés.


The information contained in this email and in any document enclosed is 
strictly confidential and is intended solely for the use of the 
individual or entity to which it is addressed.
Partial or total disclosure, distribution or reproduction of its 
contents is strictly prohibited unless expressly approved in writing by 
the sender.
If you have received this communication in error, please notify us 
immediately by responding to this email, and then delete the message and 
its attached files from your system.



--
You received this message because you are subscribed to the Google 
Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to golang-nuts+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com .


--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a7746ded-49cb-4a8c-aa00-e2bb8676b23a%40gmail.com.


[go-nuts] Is it possible to build a Go binary without the runtime ?

2024-01-23 Thread 'Karolina GORNA' via golang-nuts
Hi everyone,

I would like to build my Go program and to reverse-engineer it. I would 
find it easier to build it without the runtime and to statically analyse 
only the binary of the program.

Is it possible and if yes, how please ?

Thank you for your time.
-- 

Les informations contenues dans ce message électronique ainsi que celles 
contenues dans les documents attachés sont strictement confidentielles et 
sont destinées à l'usage exclusif du (des) destinataire(s) nommé(s).
Toute 
divulgation, distribution ou reproduction, même partielle, en est 
strictement interdite sauf autorisation écrite et expresse de l’émetteur.
Si vous recevez ce message par erreur, veuillez le notifier immédiatement à 
son émetteur par retour, et le détruire ainsi que tous les documents qui y 
sont attachés.


The information contained in this email and in any 
document enclosed is strictly confidential and is intended solely for the 
use of the individual or entity to which it is addressed.
Partial or total 
disclosure, distribution or reproduction of its contents is strictly 
prohibited unless expressly approved in writing by the sender.
If you have 
received this communication in error, please notify us immediately by 
responding to this email, and then delete the message and its attached 
files from your system.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9e309ee6-18ca-48b2-bf6b-e5a9e7325838n%40googlegroups.com.