flat assembler
Message board for the users of flat assembler.

Index > Heap > FASM online

Goto page 1, 2, 3  Next
Author
Thread Post new topic Reply to topic
DustWolf



Joined: 26 Jan 2006
Posts: 373
Location: Ljubljana, Slovenia
DustWolf
I've set up an online FASM assember. Laughing

http://fasm.ctrl-alt-del.si/

Come over and give it a shot. I'm sure it has some kind of usable application, like for example doing FASM on a PDA or something.

Give me some comments. I'll be adding includes and stuff like that as I go.
Post 30 Aug 2007, 20:46
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1288
Location: behind the arc
Picnic
It's cool DustWolf, how did you do that, using php?
I gave it some scripts from inside forum (dos section) and works fine.
Add it on my favorites Smile
Post 30 Aug 2007, 21:04
View user's profile Send private message Reply with quote
DustWolf



Joined: 26 Jan 2006
Posts: 373
Location: Ljubljana, Slovenia
DustWolf
thimis wrote:
It's cool DustWolf, how did you do that, using php?
I gave it some scripts from inside forum (dos section) and works fine.
Add it on my favorites Smile


Hehe. Yes, php.

Now all I need is Thomazs' php code for coloring FASM code in the dialog.
Post 30 Aug 2007, 21:09
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
old trick: did you disable "file" directive? otherwise we can list your HDD and hack your server Wink
Post 30 Aug 2007, 21:18
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
DustWolf



Joined: 26 Jan 2006
Posts: 373
Location: Ljubljana, Slovenia
DustWolf
vid wrote:
old trick: did you disable "file" directive? otherwise we can list your HDD and hack your server Wink


Explain.
Post 30 Aug 2007, 21:20
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7751
Location: Kraków, Poland
Tomasz Grysztar
Try to assemble:
Code:
file '/etc/passwd'    

and you'll see what vid means.
Post 30 Aug 2007, 21:31
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
read manual about "file" directive. it can contain data of file on local machine to output file. that can be used to read files from your server
Post 30 Aug 2007, 21:32
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7751
Location: Kraków, Poland
Tomasz Grysztar
To disable it, find the "data_file" label in the ASSEMBLE.INC file and put the "jmp illegal_instruction" just after it - then reassemble fasm.
Post 30 Aug 2007, 21:34
View user's profile Send private message Visit poster's website Reply with quote
DustWolf



Joined: 26 Jan 2006
Posts: 373
Location: Ljubljana, Slovenia
DustWolf
Tomasz Grysztar wrote:
To disable it, find the "data_file" label in the ASSEMBLE.INC file and put the "jmp illegal_instruction" just after it - then reassemble fasm.


Thanks! Fixed. Smile

p.s. The apache user doesn't have much access to anything important anyway. Wink

p.s. vid: It's a Linux box. Very Happy
Post 30 Aug 2007, 21:56
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Looks cool!
Would be more useful if it had win32 headers.
So, anyone could assemble code for any OS, from one place! Very Happy
Post 31 Aug 2007, 02:05
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
I just did some tests and I think "include" should be disabled too.

Example: Do you want to know the contents of third line of /etc/passwd? No problem, here it is:

{When DustWolf disable the feature I'll show Very Happy. In the meantime I'll send a PM to him showing it}
Post 31 Aug 2007, 02:59
View user's profile Send private message Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
Really nice idea DustWolf! Smile
Post 31 Aug 2007, 06:53
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6038
Location: Poland
MHajduk
DustWolf

Yes, your idea is really intriguing. Smile But could you explain in which cases on-line FASM compiler is better than normal "off-line"?
Post 31 Aug 2007, 09:27
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
When you are very low on RAM (OK, find a non-memory-hoggy browser first Laughing ), or have an OS without FASM port (but with browser Laughing )
Post 31 Aug 2007, 10:26
View user's profile Send private message Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
DustWolf have just made FASM as portable as Java Applets!
Hurrah ! ! !
Post 31 Aug 2007, 14:29
View user's profile Send private message Reply with quote
DustWolf



Joined: 26 Jan 2006
Posts: 373
Location: Ljubljana, Slovenia
DustWolf
OzzY wrote:
Looks cool!
Would be more useful if it had win32 headers.
So, anyone could assemble code for any OS, from one place! Very Happy


Actually I included them... the problem seems to be in uppercase / lowercase. The includes in code tend to be random-case and the .INC files I got share a simmilar trait. Since Linux is case sensitive this makes it next to impossible for a programmer to guess how to type the includes.

I'm open to suggestions. Wink

EDIT: Code now converts itself to lowercase. That might kind of ruin some strings but on the other hand it's the quickest fix.


Last edited by DustWolf on 31 Aug 2007, 19:26; edited 1 time in total
Post 31 Aug 2007, 17:05
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger Reply with quote
DustWolf



Joined: 26 Jan 2006
Posts: 373
Location: Ljubljana, Slovenia
DustWolf
LocoDelAssembly wrote:
I just did some tests and I think "include" should be disabled too.

Example: Do you want to know the contents of third line of /etc/passwd? No problem, here it is:

{When DustWolf disable the feature I'll show Very Happy. In the meantime I'll send a PM to him showing it}


Yes.. actually I didn't write the page for it to be hacked appart. ...tho that may be a given for a popular website (I also still think it is a bit unlinkely that there will ever be any FASM-syntax-knowing bots or scriptkiddies).

I guess I could make a parser that would block execution whenever somebody entered a non-".inc" include. FASM without includes is a little dull.

For the record tho, all IPs are being logged.

EDIT: Disabled support for in-code "macro" instruction until I get a better idea. Macros in includes still go.


Last edited by DustWolf on 31 Aug 2007, 19:23; edited 1 time in total
Post 31 Aug 2007, 17:10
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger Reply with quote
DustWolf



Joined: 26 Jan 2006
Posts: 373
Location: Ljubljana, Slovenia
DustWolf
MHajduk wrote:
DustWolf

Yes, your idea is really intriguing. Smile But could you explain in which cases on-line FASM compiler is better than normal "off-line"?


As I said, doing FASM programming on a PDA that uses an architecture not currently supported by FASM.

Seriously tho, I don't think there is any. I did it for fun.

...It MAY hold some value in being a more straightforward way of getting some new and probably very young potential programmer accostum of the lanugage. It would be promotional value. Young people are more fond of webpages than command line interfaces these days.
Post 31 Aug 2007, 17:14
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1288
Location: behind the arc
Picnic
DustWolf wrote:
Young people are more fond of webpages than command line interfaces these days.

I agree!
And with some online interactive courses to the left side and the code window on the other side.... (Just a thought)
Post 31 Aug 2007, 18:34
View user's profile Send private message Reply with quote
DustWolf



Joined: 26 Jan 2006
Posts: 373
Location: Ljubljana, Slovenia
DustWolf
thimis wrote:
And with some online interactive courses to the left side and the code window on the other side.... (Just a thought)


It's of course not a bad idea... I'll probably get onto it sometime when I have the time. Help is appreciated of course.
Post 31 Aug 2007, 20:32
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2, 3  Next

< 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. Also on YouTube, Twitter.

Website powered by rwasa.