flat assembler
Message board for the users of flat assembler.

Index > Heap > write .net application using fasm and control .net framework

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 8870
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
this might be crazy, but i was thinking bout if it is possible to write .net application using fasm, maybe with the only basic feature create, set & get to control .net framework variable?

and supply pointer for required variable to class method,
Post 20 Apr 2013, 05:58
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 21:00; edited 1 time in total
Post 20 Apr 2013, 16:23
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz
Why do people so much like .NET ? Sad
Post 20 Apr 2013, 16:31
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 21:00; edited 1 time in total
Post 20 Apr 2013, 17:45
View user's profile Send private message Reply with quote
Bob++



Joined: 12 Feb 2013
Posts: 92
Bob++
HaHaAnonymous wrote:
Quote:

Why do people so much like .NET ?

Because "everybody uses it". Just like Windows.

And as you know, this segment lives in a microsoft's dictatorship.


Why isn't jave loved as .NET?
Post 21 Apr 2013, 01:33
View user's profile Send private message Reply with quote
Bob++



Joined: 12 Feb 2013
Posts: 92
Bob++
About topic,It's nice,I agree.
Post 21 Apr 2013, 01:35
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 20:58; edited 1 time in total
Post 21 Apr 2013, 02:22
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
Bob++ wrote:
HaHaAnonymous wrote:
Quote:

Why do people so much like .NET ?

Because "everybody uses it". Just like Windows.

And as you know, this segment lives in a microsoft's dictatorship.


Why isn't jave loved as .NET?


Because it's better than .NET Razz

Nah. .NET framework is exclusive for Windows only and since the majority of OS programmers and users have Windows (my speculation) that's why it's much talked of and used. So when you want real cross platform-ready-to-go code you use JAVA. Any .NET ports to different OSs other than Windows may/may not be as fast as the Windows framework, which MS has only support for.

I use .NET only when I'm getting paid for it.
I use JAVA because that's what I use for Android programming.

One thing in common between JAVA and .NET among others: Once the installation gets fucked you have to clean and re-install the whole thing. .NET is even worse since so many OS apps and other 3rd party apps use it.
Post 21 Apr 2013, 03:26
View user's profile Send private message Reply with quote
uart777



Joined: 17 Jan 2012
Posts: 369
uart777
Forget .NET. Java has the advantages of portability and predefined library. Tomasz provided an example of how to assemble JVM instructions and write a .CLASS file: http://board.flatassembler.net/topic.php?t=13961

We must learn how to write Android/.APK archives. I can emulate Java's syntax (except for {}, // comments and ; required to end statement) or make a backend. Example:
Code:
;// Java example that could be written in FASM...

public class Hello
 public static void main(String[] args)
  System.out.println("Hello")
 endm
endc    
sleep: You're asking the wrong people the wrong questions. Besides the creator of FASM, only a handful of people here are really experienced in writing macros: LocoDelAssembly, revolution, hopcode, baldr, bitrake, I_inc and some others (sorry if I forgot anyone).
Post 21 Apr 2013, 20:39
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 821
Location: Jakarta, Indonesia
TmX
Hi uart777,

Instead of trying to emulate Java, maybe it would be simpler (?) to extend what Tomasz already did: macros.

As long as we are able to generate Java bytecodes and interact will Java libraries, that's more than enough. We don't need to write another Java compiler.

Very Happy
Post 22 Apr 2013, 01:35
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8870
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
thanks for lots of replies,
i know i asked lots of stupid questions here,

but shouldnt it be possible to control c# variable from asm?
and since c# is iso language,
maybe fasm macro to output c# lang, but independent execution without .net but native win32/64 calling.

TmX wrote:
As long as we are able to generate Java bytecodes and interact will Java libraries, that's more than enough. We don't need to write another Java compiler.

i agree, that is quite breakthrough,
Post 22 Apr 2013, 03:18
View user's profile Send private message Reply with quote
malpolud



Joined: 18 Jul 2011
Posts: 344
Location: Broken hippocampus
malpolud
sleepsleep asked quite an interesting question, I am curious about FASM + .NET framework interaction as well. Why? Because it is worth knowing. .NET is used in many business and scientific applications.

Please, could one of Moderators delete all the offtopic posts?
Post 22 Apr 2013, 17:40
View user's profile Send private message Visit poster's website Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 20:57; edited 1 time in total
Post 22 Apr 2013, 17:54
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17250
Location: In your JS exploiting you and your system
revolution
Personally I've always considered .NET as just another form of Java, the main difference being it is compiled on the fly. The compilation process seems somewhat silly to do on the users machine because the potential gains from using machine specific opcodes are mostly (if not completely) lost to the overhead imposed.

I wonder if there are any actual independent tests done to see if there is an overall gain? I would imagine it would be dependant upon what type of application was running. My experience with .NET programs has been mostly poor performance. The startup is very slow and disk usage increases because of compiled code caching. That combined with the impossibility of debugging makes me extremely uncomfortable with things like Java and .NET. No documentation of the internals and having to deal with two sources of bugs from both the original program and the background framework. Also, not forgetting that the existence of a common framework means it becomes a juicy target for hackers.
malpolud wrote:
Please, could one of Moderators delete all the offtopic posts?
Confused I think you misunderstand the policies of this board. Stuff might get moved, or not moved, depending on the severity. But deleted? Probably not.
Post 22 Apr 2013, 18:29
View user's profile Send private message Visit poster's website Reply with quote
malpolud



Joined: 18 Jul 2011
Posts: 344
Location: Broken hippocampus
malpolud
This does not matter whether .NET is slow, insecure, developed by MS or anything else.

Could anybody provide some useful information/examples? It is being used, and for some of us some examples could be helpful. It is not always a matter of choice, what kind of software/framework we are in need to use.
Post 22 Apr 2013, 19:22
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.