473,320 Members | 2,189 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ASP.NET 2005 hack-proof?

I know ASP.NET 1.x generated dll's which decompilable to plain c or vb
(afaik, i never used 2003)

Is this problem solved in 2005?
We ever want to distribute 2005 compiled code.
And it seems all like ordinary dll's at first.
Is the code i wrote retrievable?

Thanks!

PS, this is not a discussion about decompiling to win32 assembly code.
Dec 2 '05 #1
17 1378
Jon
It works the same. You should use an obfuscator on .Net 2 exes and dlls,
just like on 1.x.
"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
I know ASP.NET 1.x generated dll's which decompilable to plain c or vb
(afaik, i never used 2003)

Is this problem solved in 2005?
We ever want to distribute 2005 compiled code.
And it seems all like ordinary dll's at first.
Is the code i wrote retrievable?

Thanks!

PS, this is not a discussion about decompiling to win32 assembly code.

Dec 2 '05 #2
Anyone having such a tool?
The tools i found on internet are extremely expensive!

That dodo from Xenocode must be insane $2000 USD.
Their trial also connects through internet.
Wonder if this is not so when i purchase such a tool.
(Maybe the $99 version)


"Jon" <ru******@msn.com> schreef in bericht
news:OX**************@TK2MSFTNGP11.phx.gbl...
It works the same. You should use an obfuscator on .Net 2 exes and dlls,
just like on 1.x.
"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
I know ASP.NET 1.x generated dll's which decompilable to plain c or vb
(afaik, i never used 2003)

Is this problem solved in 2005?
We ever want to distribute 2005 compiled code.
And it seems all like ordinary dll's at first.
Is the code i wrote retrievable?

Thanks!

PS, this is not a discussion about decompiling to win32 assembly code.


Dec 2 '05 #3
How much difference does that make? Is source still retrievable? I mean are
we getting a false sense of security?

Thanks

Regards

"Jon" <ru******@msn.com> wrote in message
news:OX**************@TK2MSFTNGP11.phx.gbl...
It works the same. You should use an obfuscator on .Net 2 exes and dlls,
just like on 1.x.
"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
I know ASP.NET 1.x generated dll's which decompilable to plain c or vb
(afaik, i never used 2003)

Is this problem solved in 2005?
We ever want to distribute 2005 compiled code.
And it seems all like ordinary dll's at first.
Is the code i wrote retrievable?

Thanks!

PS, this is not a discussion about decompiling to win32 assembly code.


Dec 2 '05 #4
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
How much difference does that make?
It will deter the casual decompiler, nothing more.
Is source still retrievable?
Yes, given enough time and resource...
I mean are we getting a false sense of security?


It largely depends. A skilled and determined car thief will be able to steal
your car no matter how carefully you lock it...
Dec 2 '05 #5
You could also try the Obfuscator included with VS 2005.

Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
Anyone having such a tool?
The tools i found on internet are extremely expensive!

That dodo from Xenocode must be insane $2000 USD.
Their trial also connects through internet.
Wonder if this is not so when i purchase such a tool.
(Maybe the $99 version) "Jon" <ru******@msn.com> schreef in bericht news:OX**************@TK2MSFTNGP11.phx.gbl...
It works the same. You should use an obfuscator on .Net 2 exes and dlls, just like on 1.x.
"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
I know ASP.NET 1.x generated dll's which decompilable to plain c or vb (afaik, i never used 2003)

Is this problem solved in 2005?
We ever want to distribute 2005 compiled code.
And it seems all like ordinary dll's at first.
Is the code i wrote retrievable?

Thanks!

PS, this is not a discussion about decompiling to win32 assembly code.



Dec 2 '05 #6
Comparing of apples and oranges..?
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
news:ua**************@tk2msftngp13.phx.gbl...
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
How much difference does that make?


It will deter the casual decompiler, nothing more.
Is source still retrievable?


Yes, given enough time and resource...
I mean are we getting a false sense of security?


It largely depends. A skilled and determined car thief will be able to
steal your car no matter how carefully you lock it...

Dec 2 '05 #7
> Comparing of apples and oranges..?

Not at all.

Obfuscation is not fool-proof once the DLL is obtained. In fact, nothing is.
Decompilation is always possible. If the computer can read the DLL, so can a
decompiler.

Earlier, John asked if "we [are] all getting a false sense of security." I
would argue that we are all getting a false sense of INsecurity. In fact,
obfuscation should not be necessary at all. If anyone other than the author
can get to the DLLs on the server file system, there is already a huge hole
in the security for that system.

Software thievery is exactly like "real-life" thievery. It is the illegal
acquisition of another person's property. And just as in "real-life"
thievery, there are levels of expertise in the thievery realm. There are
shoplifters, and there are safe-crackers. And software should be protected
in the same way that "real-life" property should be protected, according to
its value, because the higher the level of protection you wish to employ,
the more it will cost you. Nobody has yet robbed Fort Knox. but in 1936 it
cost over a half-million dollars to build the gold depository vault, and the
Fort has an annual budget of over 12 million dollars. Obviously, you don't
want to spend that much money to protect your wallet.

So, the amount of trouble, time, and expense to protect intellectual
property should be proportional to the value of the property. And again, if
a hacker can break into the file system of the web server, obfuscation isn't
any solution at all. Fixing the security hole in the web server is the
solution.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
Comparing of apples and oranges..?
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
news:ua**************@tk2msftngp13.phx.gbl...
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
How much difference does that make?


It will deter the casual decompiler, nothing more.
Is source still retrievable?


Yes, given enough time and resource...
I mean are we getting a false sense of security?


It largely depends. A skilled and determined car thief will be able to
steal your car no matter how carefully you lock it...


Dec 2 '05 #8
Edwin Knoppert wrote:
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
news:ua**************@tk2msftngp13.phx.gbl...
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl.. .
How much difference does that make?It will deter the casual decompiler, nothing more.
I mean are we getting a false sense of security?

It largely depends. A skilled and determined car thief will be able to
steal your car no matter how carefully you lock it...

Comparing of apples and oranges..?


Why not? It's all fruit :oD
Dec 2 '05 #9
re:
Comparing of apples and oranges..?

Why not? It's all fruit :oD


It's easy to tell it's, finally, Friday!

Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
Dec 2 '05 #10
If we post our dll's on another compagny's server or even distribute simple
apps for the consumer market.
We don't want to give away our programming skills.

And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.
There will be no one interested to decompile ASP.NET code to assembly to get
a hint of how our code works.

But as i see it, the current stuff seems easy to be decompiled into a useful
language.
I don't know exactly since i never seen decompiled code.
Maybe someone can post a not to complex procedure, before and after..

??

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uV**************@tk2msftngp13.phx.gbl...
Comparing of apples and oranges..?


Not at all.

Obfuscation is not fool-proof once the DLL is obtained. In fact, nothing
is. Decompilation is always possible. If the computer can read the DLL, so
can a decompiler.

Earlier, John asked if "we [are] all getting a false sense of security." I
would argue that we are all getting a false sense of INsecurity. In fact,
obfuscation should not be necessary at all. If anyone other than the
author can get to the DLLs on the server file system, there is already a
huge hole in the security for that system.

Software thievery is exactly like "real-life" thievery. It is the illegal
acquisition of another person's property. And just as in "real-life"
thievery, there are levels of expertise in the thievery realm. There are
shoplifters, and there are safe-crackers. And software should be protected
in the same way that "real-life" property should be protected, according
to its value, because the higher the level of protection you wish to
employ, the more it will cost you. Nobody has yet robbed Fort Knox. but in
1936 it cost over a half-million dollars to build the gold depository
vault, and the Fort has an annual budget of over 12 million dollars.
Obviously, you don't want to spend that much money to protect your wallet.

So, the amount of trouble, time, and expense to protect intellectual
property should be proportional to the value of the property. And again,
if a hacker can break into the file system of the web server, obfuscation
isn't any solution at all. Fixing the security hole in the web server is
the solution.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
Comparing of apples and oranges..?
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
news:ua**************@tk2msftngp13.phx.gbl...
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

How much difference does that make?

It will deter the casual decompiler, nothing more.

Is source still retrievable?

Yes, given enough time and resource...

I mean are we getting a false sense of security?

It largely depends. A skilled and determined car thief will be able to
steal your car no matter how carefully you lock it...



Dec 2 '05 #11
On Fri, 2 Dec 2005 14:46:44 +0100, "Edwin Knoppert"
<ne**@hellobasic.com> wrote:
I know ASP.NET 1.x generated dll's which decompilable to plain c or vb
(afaik, i never used 2003)

Is this problem solved in 2005?
No.
We ever want to distribute 2005 compiled code.
And it seems all like ordinary dll's at first.
Is the code i wrote retrievable?


Always.

Another tip I have - never give your application a user interface -
someone might see it and steal that too ;)

--
Scott
http://www.OdeToCode.com/blogs/scott/
Dec 2 '05 #12
Hi Edwin,
And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.
Would you be surprised if I told you I have a decompiler that can decompile
..Net assemblies, obfuscated or not, into C#, and that it is a
commercially-available product?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. .. If we post our dll's on another compagny's server or even distribute
simple apps for the consumer market.
We don't want to give away our programming skills.

And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.
There will be no one interested to decompile ASP.NET code to assembly to
get a hint of how our code works.

But as i see it, the current stuff seems easy to be decompiled into a
useful language.
I don't know exactly since i never seen decompiled code.
Maybe someone can post a not to complex procedure, before and after..

??

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uV**************@tk2msftngp13.phx.gbl...
Comparing of apples and oranges..?


Not at all.

Obfuscation is not fool-proof once the DLL is obtained. In fact, nothing
is. Decompilation is always possible. If the computer can read the DLL,
so can a decompiler.

Earlier, John asked if "we [are] all getting a false sense of security."
I would argue that we are all getting a false sense of INsecurity. In
fact, obfuscation should not be necessary at all. If anyone other than
the author can get to the DLLs on the server file system, there is
already a huge hole in the security for that system.

Software thievery is exactly like "real-life" thievery. It is the illegal
acquisition of another person's property. And just as in "real-life"
thievery, there are levels of expertise in the thievery realm. There are
shoplifters, and there are safe-crackers. And software should be
protected in the same way that "real-life" property should be protected,
according to its value, because the higher the level of protection you
wish to employ, the more it will cost you. Nobody has yet robbed Fort
Knox. but in 1936 it cost over a half-million dollars to build the gold
depository vault, and the Fort has an annual budget of over 12 million
dollars. Obviously, you don't want to spend that much money to protect
your wallet.

So, the amount of trouble, time, and expense to protect intellectual
property should be proportional to the value of the property. And again,
if a hacker can break into the file system of the web server, obfuscation
isn't any solution at all. Fixing the security hole in the web server is
the solution.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
Comparing of apples and oranges..?
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
news:ua**************@tk2msftngp13.phx.gbl...
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

> How much difference does that make?

It will deter the casual decompiler, nothing more.

>Is source still retrievable?

Yes, given enough time and resource...

> I mean are we getting a false sense of security?

It largely depends. A skilled and determined car thief will be able to
steal your car no matter how carefully you lock it...



Dec 2 '05 #13
No. Which one is it?

Regards

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
Hi Edwin,
And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.


Would you be surprised if I told you I have a decompiler that can
decompile .Net assemblies, obfuscated or not, into C#, and that it is a
commercially-available product?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
If we post our dll's on another compagny's server or even distribute
simple apps for the consumer market.
We don't want to give away our programming skills.

And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.
There will be no one interested to decompile ASP.NET code to assembly to
get a hint of how our code works.

But as i see it, the current stuff seems easy to be decompiled into a
useful language.
I don't know exactly since i never seen decompiled code.
Maybe someone can post a not to complex procedure, before and after..

??

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uV**************@tk2msftngp13.phx.gbl...
Comparing of apples and oranges..?

Not at all.

Obfuscation is not fool-proof once the DLL is obtained. In fact, nothing
is. Decompilation is always possible. If the computer can read the DLL,
so can a decompiler.

Earlier, John asked if "we [are] all getting a false sense of security."
I would argue that we are all getting a false sense of INsecurity. In
fact, obfuscation should not be necessary at all. If anyone other than
the author can get to the DLLs on the server file system, there is
already a huge hole in the security for that system.

Software thievery is exactly like "real-life" thievery. It is the
illegal acquisition of another person's property. And just as in
"real-life" thievery, there are levels of expertise in the thievery
realm. There are shoplifters, and there are safe-crackers. And software
should be protected in the same way that "real-life" property should be
protected, according to its value, because the higher the level of
protection you wish to employ, the more it will cost you. Nobody has yet
robbed Fort Knox. but in 1936 it cost over a half-million dollars to
build the gold depository vault, and the Fort has an annual budget of
over 12 million dollars. Obviously, you don't want to spend that much
money to protect your wallet.

So, the amount of trouble, time, and expense to protect intellectual
property should be proportional to the value of the property. And again,
if a hacker can break into the file system of the web server,
obfuscation isn't any solution at all. Fixing the security hole in the
web server is the solution.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
Comparing of apples and oranges..?
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
news:ua**************@tk2msftngp13.phx.gbl...
> "John" <Jo**@nospam.infovis.co.uk> wrote in message
> news:%2****************@tk2msftngp13.phx.gbl...
>
>> How much difference does that make?
>
> It will deter the casual decompiler, nothing more.
>
>>Is source still retrievable?
>
> Yes, given enough time and resource...
>
>> I mean are we getting a false sense of security?
>
> It largely depends. A skilled and determined car thief will be able to
> steal your car no matter how carefully you lock it...
>



Dec 2 '05 #14
I don't really care much, i take your word on that, fine.

*What i need is a solid way to prevent that.*

'Happily' a few parts in our ASP.NET apps use plain win32 dll's we create
ourselves.
Stuff we haven't coded in ASP.NET yet and might be to difficult to do so
anyway.
(+ same code is used in our stand-alone apps as well, not using dotnet)

So that might reduce the joy of decompiling somewhat :)

Also discussions how i should think about these matters.. well i made up my
mind already.
Iow, i don't want decompilation.
During the VB3 times i was also able to rewrite some stuff in the VB exe's
and that decompiler gasp'd, that's good for me.

Is there someone who can show me some decompiled code?
I want to know if it's worth using at all.
Thanks,

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uA**************@tk2msftngp13.phx.gbl...
Hi Edwin,
And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.


Would you be surprised if I told you I have a decompiler that can
decompile .Net assemblies, obfuscated or not, into C#, and that it is a
commercially-available product?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
If we post our dll's on another compagny's server or even distribute
simple apps for the consumer market.
We don't want to give away our programming skills.

And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.
There will be no one interested to decompile ASP.NET code to assembly to
get a hint of how our code works.

But as i see it, the current stuff seems easy to be decompiled into a
useful language.
I don't know exactly since i never seen decompiled code.
Maybe someone can post a not to complex procedure, before and after..

??

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uV**************@tk2msftngp13.phx.gbl...
Comparing of apples and oranges..?

Not at all.

Obfuscation is not fool-proof once the DLL is obtained. In fact, nothing
is. Decompilation is always possible. If the computer can read the DLL,
so can a decompiler.

Earlier, John asked if "we [are] all getting a false sense of security."
I would argue that we are all getting a false sense of INsecurity. In
fact, obfuscation should not be necessary at all. If anyone other than
the author can get to the DLLs on the server file system, there is
already a huge hole in the security for that system.

Software thievery is exactly like "real-life" thievery. It is the
illegal acquisition of another person's property. And just as in
"real-life" thievery, there are levels of expertise in the thievery
realm. There are shoplifters, and there are safe-crackers. And software
should be protected in the same way that "real-life" property should be
protected, according to its value, because the higher the level of
protection you wish to employ, the more it will cost you. Nobody has yet
robbed Fort Knox. but in 1936 it cost over a half-million dollars to
build the gold depository vault, and the Fort has an annual budget of
over 12 million dollars. Obviously, you don't want to spend that much
money to protect your wallet.

So, the amount of trouble, time, and expense to protect intellectual
property should be proportional to the value of the property. And again,
if a hacker can break into the file system of the web server,
obfuscation isn't any solution at all. Fixing the security hole in the
web server is the solution.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
Comparing of apples and oranges..?
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
news:ua**************@tk2msftngp13.phx.gbl...
> "John" <Jo**@nospam.infovis.co.uk> wrote in message
> news:%2****************@tk2msftngp13.phx.gbl...
>
>> How much difference does that make?
>
> It will deter the casual decompiler, nothing more.
>
>>Is source still retrievable?
>
> Yes, given enough time and resource...
>
>> I mean are we getting a false sense of security?
>
> It largely depends. A skilled and determined car thief will be able to
> steal your car no matter how carefully you lock it...
>



Dec 2 '05 #15
Okay, if you *really* want to understand the whole obfuscation issue, here
is a great e-book:
http://www.desaware.com/products/boo...ing/index.aspx

It includes before/after decompilation code and gives the whole topic a
thorough and readable treatment.

If you don't want to thoroughly understand the topic and you're just after
a bottom line answer, then here's a bottom line answer on how to make your
source code as safe as possible (given that the MVPs here apparently take
the tact of "don't worry about it, there's more important things to worry
about". NO FLAME intended!!! - that's literally what you guys are saying...
a valid point with which I totally agree; but that's not helpful to the OP
who I gather is wondering what it takes to make his source as safe as
possible and if VS2005 helps, which it obviously doesn't...).

To make your source as safe as possible (keeping in mind that nothing you do
will make it 100%), you do at least these 3 things:
1. Obfuscate your code using a strong obfuscator (like the one from
http://www.preemptive.com/ not the freebie in VS.NET and not the freebie
offered by Desaware)

2. Implement licensing in your software using an industrial-strength
licencing system - like the one from Desaware.com

3. Have all of your assemblies strong-named. Then have each server component
verify the caller via its strong name... if it's being called by an
unrecognized client, then discontinue processing the request...

So, is it worth it to you to do *at least all* of the 3 steps above? It can
be easily argued that doing anything less than ALL of the 3 steps I is
completely pointless and a waste of your time (might as well do nothing).

Remember it's not about getting "completely safe" - it's all about raising
the bar high enough to kill the economics for your would-be hacker. It's all
about economics at the end of the day. Kevin Spencer's post nailed it pretty
well with the Ft. Knox example.
-HTH

-Jeff


"Edwin Knoppert" <in**@pbsoft.speedlinq.nl> wrote in message
news:dm**********@azure.qinip.net...
I don't really care much, i take your word on that, fine.

*What i need is a solid way to prevent that.*

'Happily' a few parts in our ASP.NET apps use plain win32 dll's we create
ourselves.
Stuff we haven't coded in ASP.NET yet and might be to difficult to do so
anyway.
(+ same code is used in our stand-alone apps as well, not using dotnet)

So that might reduce the joy of decompiling somewhat :)

Also discussions how i should think about these matters.. well i made up
my mind already.
Iow, i don't want decompilation.
During the VB3 times i was also able to rewrite some stuff in the VB exe's
and that decompiler gasp'd, that's good for me.

Is there someone who can show me some decompiled code?
I want to know if it's worth using at all.
Thanks,

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uA**************@tk2msftngp13.phx.gbl...
Hi Edwin,
And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.


Would you be surprised if I told you I have a decompiler that can
decompile .Net assemblies, obfuscated or not, into C#, and that it is a
commercially-available product?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
If we post our dll's on another compagny's server or even distribute
simple apps for the consumer market.
We don't want to give away our programming skills.

And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.
There will be no one interested to decompile ASP.NET code to assembly to
get a hint of how our code works.

But as i see it, the current stuff seems easy to be decompiled into a
useful language.
I don't know exactly since i never seen decompiled code.
Maybe someone can post a not to complex procedure, before and after..

??

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uV**************@tk2msftngp13.phx.gbl...
> Comparing of apples and oranges..?

Not at all.

Obfuscation is not fool-proof once the DLL is obtained. In fact,
nothing is. Decompilation is always possible. If the computer can read
the DLL, so can a decompiler.

Earlier, John asked if "we [are] all getting a false sense of
security." I would argue that we are all getting a false sense of
INsecurity. In fact, obfuscation should not be necessary at all. If
anyone other than the author can get to the DLLs on the server file
system, there is already a huge hole in the security for that system.

Software thievery is exactly like "real-life" thievery. It is the
illegal acquisition of another person's property. And just as in
"real-life" thievery, there are levels of expertise in the thievery
realm. There are shoplifters, and there are safe-crackers. And software
should be protected in the same way that "real-life" property should be
protected, according to its value, because the higher the level of
protection you wish to employ, the more it will cost you. Nobody has
yet robbed Fort Knox. but in 1936 it cost over a half-million dollars
to build the gold depository vault, and the Fort has an annual budget
of over 12 million dollars. Obviously, you don't want to spend that
much money to protect your wallet.

So, the amount of trouble, time, and expense to protect intellectual
property should be proportional to the value of the property. And
again, if a hacker can break into the file system of the web server,
obfuscation isn't any solution at all. Fixing the security hole in the
web server is the solution.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
> Comparing of apples and oranges..?
>
>
> "Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
> news:ua**************@tk2msftngp13.phx.gbl...
>> "John" <Jo**@nospam.infovis.co.uk> wrote in message
>> news:%2****************@tk2msftngp13.phx.gbl...
>>
>>> How much difference does that make?
>>
>> It will deter the casual decompiler, nothing more.
>>
>>>Is source still retrievable?
>>
>> Yes, given enough time and resource...
>>
>>> I mean are we getting a false sense of security?
>>
>> It largely depends. A skilled and determined car thief will be able
>> to steal your car no matter how carefully you lock it...
>>
>
>



Dec 2 '05 #16
> it's all about raising the bar high enough to kill the economics for your
would-be hacker. That's my goal.
I'm not talking about the A-H 18-year old i-can-hack-anything, he would not
have any interest.

I'll reread your post tomorrow, if anyone has more on this, i would like
that.

Thanks so far,

"Jeff" <Je**@NoSpam.com> schreef in bericht
news:u4**************@TK2MSFTNGP11.phx.gbl... Okay, if you *really* want to understand the whole obfuscation issue, here
is a great e-book:
http://www.desaware.com/products/boo...ing/index.aspx

It includes before/after decompilation code and gives the whole topic a
thorough and readable treatment.

If you don't want to thoroughly understand the topic and you're just
after a bottom line answer, then here's a bottom line answer on how to
make your source code as safe as possible (given that the MVPs here
apparently take the tact of "don't worry about it, there's more important
things to worry about". NO FLAME intended!!! - that's literally what you
guys are saying... a valid point with which I totally agree; but that's
not helpful to the OP who I gather is wondering what it takes to make his
source as safe as possible and if VS2005 helps, which it obviously
doesn't...).

To make your source as safe as possible (keeping in mind that nothing you
do will make it 100%), you do at least these 3 things:
1. Obfuscate your code using a strong obfuscator (like the one from
http://www.preemptive.com/ not the freebie in VS.NET and not the freebie
offered by Desaware)

2. Implement licensing in your software using an industrial-strength
licencing system - like the one from Desaware.com

3. Have all of your assemblies strong-named. Then have each server
component verify the caller via its strong name... if it's being called by
an unrecognized client, then discontinue processing the request...

So, is it worth it to you to do *at least all* of the 3 steps above? It
can be easily argued that doing anything less than ALL of the 3 steps I is
completely pointless and a waste of your time (might as well do nothing).

Remember it's not about getting "completely safe" - it's all about raising
the bar high enough to kill the economics for your would-be hacker. It's
all about economics at the end of the day. Kevin Spencer's post nailed it
pretty well with the Ft. Knox example.
-HTH

-Jeff


"Edwin Knoppert" <in**@pbsoft.speedlinq.nl> wrote in message
news:dm**********@azure.qinip.net...
I don't really care much, i take your word on that, fine.

*What i need is a solid way to prevent that.*

'Happily' a few parts in our ASP.NET apps use plain win32 dll's we create
ourselves.
Stuff we haven't coded in ASP.NET yet and might be to difficult to do so
anyway.
(+ same code is used in our stand-alone apps as well, not using dotnet)

So that might reduce the joy of decompiling somewhat :)

Also discussions how i should think about these matters.. well i made up
my mind already.
Iow, i don't want decompilation.
During the VB3 times i was also able to rewrite some stuff in the VB
exe's and that decompiler gasp'd, that's good for me.

Is there someone who can show me some decompiled code?
I want to know if it's worth using at all.
Thanks,

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uA**************@tk2msftngp13.phx.gbl...
Hi Edwin,

And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.

Would you be surprised if I told you I have a decompiler that can
decompile .Net assemblies, obfuscated or not, into C#, and that it is a
commercially-available product?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
If we post our dll's on another compagny's server or even distribute
simple apps for the consumer market.
We don't want to give away our programming skills.

And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.
There will be no one interested to decompile ASP.NET code to assembly
to get a hint of how our code works.

But as i see it, the current stuff seems easy to be decompiled into a
useful language.
I don't know exactly since i never seen decompiled code.
Maybe someone can post a not to complex procedure, before and after..

??

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uV**************@tk2msftngp13.phx.gbl...
>> Comparing of apples and oranges..?
>
> Not at all.
>
> Obfuscation is not fool-proof once the DLL is obtained. In fact,
> nothing is. Decompilation is always possible. If the computer can read
> the DLL, so can a decompiler.
>
> Earlier, John asked if "we [are] all getting a false sense of
> security." I would argue that we are all getting a false sense of
> INsecurity. In fact, obfuscation should not be necessary at all. If
> anyone other than the author can get to the DLLs on the server file
> system, there is already a huge hole in the security for that system.
>
> Software thievery is exactly like "real-life" thievery. It is the
> illegal acquisition of another person's property. And just as in
> "real-life" thievery, there are levels of expertise in the thievery
> realm. There are shoplifters, and there are safe-crackers. And
> software should be protected in the same way that "real-life" property
> should be protected, according to its value, because the higher the
> level of protection you wish to employ, the more it will cost you.
> Nobody has yet robbed Fort Knox. but in 1936 it cost over a
> half-million dollars to build the gold depository vault, and the Fort
> has an annual budget of over 12 million dollars. Obviously, you don't
> want to spend that much money to protect your wallet.
>
> So, the amount of trouble, time, and expense to protect intellectual
> property should be proportional to the value of the property. And
> again, if a hacker can break into the file system of the web server,
> obfuscation isn't any solution at all. Fixing the security hole in the
> web server is the solution.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> You can lead a fish to a bicycle,
> but you can't make it stink.
>
> "Edwin Knoppert" <ne**@hellobasic.com> wrote in message
> news:43**********************@text.nova.planet.nl. ..
>> Comparing of apples and oranges..?
>>
>>
>> "Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
>> news:ua**************@tk2msftngp13.phx.gbl...
>>> "John" <Jo**@nospam.infovis.co.uk> wrote in message
>>> news:%2****************@tk2msftngp13.phx.gbl...
>>>
>>>> How much difference does that make?
>>>
>>> It will deter the casual decompiler, nothing more.
>>>
>>>>Is source still retrievable?
>>>
>>> Yes, given enough time and resource...
>>>
>>>> I mean are we getting a false sense of security?
>>>
>>> It largely depends. A skilled and determined car thief will be able
>>> to steal your car no matter how carefully you lock it...
>>>
>>
>>
>
>



Dec 2 '05 #17
> No. Which one is it?

http://www.junglecreatures.com/DesktopDefault.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:eO*************@tk2msftngp13.phx.gbl...
No. Which one is it?

Regards

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
Hi Edwin,
And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.


Would you be surprised if I told you I have a decompiler that can
decompile .Net assemblies, obfuscated or not, into C#, and that it is a
commercially-available product?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
If we post our dll's on another compagny's server or even distribute
simple apps for the consumer market.
We don't want to give away our programming skills.

And as i said, let's not strand into discussions about decompiling to a
level of win32 assembly code.
There will be no one interested to decompile ASP.NET code to assembly to
get a hint of how our code works.

But as i see it, the current stuff seems easy to be decompiled into a
useful language.
I don't know exactly since i never seen decompiled code.
Maybe someone can post a not to complex procedure, before and after..

??

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uV**************@tk2msftngp13.phx.gbl...
> Comparing of apples and oranges..?

Not at all.

Obfuscation is not fool-proof once the DLL is obtained. In fact,
nothing is. Decompilation is always possible. If the computer can read
the DLL, so can a decompiler.

Earlier, John asked if "we [are] all getting a false sense of
security." I would argue that we are all getting a false sense of
INsecurity. In fact, obfuscation should not be necessary at all. If
anyone other than the author can get to the DLLs on the server file
system, there is already a huge hole in the security for that system.

Software thievery is exactly like "real-life" thievery. It is the
illegal acquisition of another person's property. And just as in
"real-life" thievery, there are levels of expertise in the thievery
realm. There are shoplifters, and there are safe-crackers. And software
should be protected in the same way that "real-life" property should be
protected, according to its value, because the higher the level of
protection you wish to employ, the more it will cost you. Nobody has
yet robbed Fort Knox. but in 1936 it cost over a half-million dollars
to build the gold depository vault, and the Fort has an annual budget
of over 12 million dollars. Obviously, you don't want to spend that
much money to protect your wallet.

So, the amount of trouble, time, and expense to protect intellectual
property should be proportional to the value of the property. And
again, if a hacker can break into the file system of the web server,
obfuscation isn't any solution at all. Fixing the security hole in the
web server is the solution.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Edwin Knoppert" <ne**@hellobasic.com> wrote in message
news:43**********************@text.nova.planet.nl. ..
> Comparing of apples and oranges..?
>
>
> "Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> schreef in bericht
> news:ua**************@tk2msftngp13.phx.gbl...
>> "John" <Jo**@nospam.infovis.co.uk> wrote in message
>> news:%2****************@tk2msftngp13.phx.gbl...
>>
>>> How much difference does that make?
>>
>> It will deter the casual decompiler, nothing more.
>>
>>>Is source still retrievable?
>>
>> Yes, given enough time and resource...
>>
>>> I mean are we getting a false sense of security?
>>
>> It largely depends. A skilled and determined car thief will be able
>> to steal your car no matter how carefully you lock it...
>>
>
>



Dec 2 '05 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mike | last post by:
I just recently returned to programming in VB.NET. I have come back to the programming side of things due to an internal business need. I have a library of books for VB that is not huge but it...
0
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire...
6
by: antoan | last post by:
I have tried NDoc 1.3.1 - dues not support .net 2.0 assemblies (have also tried the hack involving a config file using the <supportedruntime version="v2.0.50727"> to no avail - crashes) as well as...
3
by: Anonymous | last post by:
Has anyone managed to build Xalan v 1.10 using VS 2005? If the VS 7 project is converted to VS 8.0., it generates *TONS* of errors - anyone managed to build this yet?
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.