Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
Laaca(R)

Homepage

Czech republic,
14.02.2019, 23:27
 

Javascript for DOS (Announce)

There is a new development tool for DOS available. If you want to create some stuff for DOS but you did only web programming so far, it is maybe solution for you.
DOjS is a javasctipt interpreter for DOS. I can handle sound (digitized and FM syntesis) and graphics (JS canvas, BMP support). It can be driven through keyboard or mouse.
More info and download is on the GitHub:
https://github.com/SuperIlu/DOjS

---
DOS-u-akbar!

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
15.02.2019, 04:32

@ Laaca

Javascript for DOS

> There is a new development tool for DOS available. If you want to create
> some stuff for DOS but you did only web programming so far, it is maybe
> solution for you.
> DOjS is a javasctipt interpreter for DOS. I can handle sound (digitized and
> FM syntesis) and graphics (JS canvas, BMP support). It can be driven
> through keyboard or mouse.
> More info and download is on the GitHub:
> https://github.com/SuperIlu/DOjS

It is beyond my comprehension as to why anyone would want JS capability in
DOS which would by its very nature open one up to the possibility of
malicious code execution.

Is it not the fact that DOS browsers are immune to JS attacks one of the
major reasons why we continue to them for all of those sites where it's
still possible to do so ?

<paranoid mode> ;-)

And even tho this particular project is not for a browser... it still has the possibility of malicious code execution if one would execute said code at the
DOS command prompt.

And since this particular project is indeed aimed at "non-programmers",
virtually all of those using it will be completely oblivious to the fact
that the sample JS code they got from say a 'friend' on twitter
and then execute with DOjs is actually going to reformat their hard drive.

---
--
http://glennmcc.org/

iw2evk(R)

Magenta (Italy),
16.02.2019, 14:14

@ glennmcc

Javascript for DOS

Hi Glenn and all,
i hope someone know how integrate this in links browser it's a good idea.
Glenn , it's right the possibility to execute an exploit with Js , but ,in other hand without Js it's very hard surfing the most part of sites ( almost in Italy, but suppose js it's intensively used in the www).
So , i suppose try to add this code to lins browser and THEN check the possibility of maliciose attack and patch it..
I don't know if Mikulas the developper of link know how work JS (the old source it's a contribute of a french user), but we can inform you about this possibility ..

Roberto iw2evk

ron(R)

Homepage E-mail

Australia,
16.02.2019, 21:57

@ iw2evk

Javascript for DOS

> I don't know if Mikulas the developper of link know how work JS (the old
> source it's a contribute of a french user), but we can inform you about
> this possibility ..

For what it's worth, I do not use any browser that contains JS, except for
when I really REALLY have to - about once a fortnight. I am perfectly happy
using browsers that do not have JS, in DOS or Linux.

If anyone needs a browser with JS, there are plenty available.

---
AUSREG Consultancy http://www.ausreg.com
Tadpole Tunes http://www.tadpoletunes.com
Sna Keo Il http://www.tadpoletunes.com/sna_keo_il/

KormaX(R)

17.02.2019, 12:17

@ glennmcc

Javascript for DOS

"why anyone would want JS capability in DOS which would by its very nature open one up to the possibility of malicious code execution."

--

To execute malicious code on DOS you only need to COPY CON some ASCII characters into a .COM file and execute it. I don't think it requires JS or anything like that. Furthermore, the actual, existing, real-life malicious JS programs would mostly still live us alone on DOS -- except for anoying commercials and other s**t -- even if we had a fully fuctional JS capable browser. Do not forget that most malware targets things which are still not exist on DOS. For example we could browse russian adult sites more comfortable way than we can do now, but still at the same security level, because malware scripts will never find a modifyable registry... well it will not find any registry at all, than it could sadly try to convince the browser to get hijacked, but if the browser itself does not even understand what the virus wats from it, it is just a waste of energy too. A malware for DOS should target specific browsers, what creators of commercial malwares would never waste energy for. And even if they did, we could easily backup and restore our JS enabled browser, or we can execute it from RAM-disk.

Actually DOS is secure because it is not normally a target.

---
DOS isn't about why. It's about why not.

KormaX(R)

17.02.2019, 12:30

@ ron

Javascript for DOS

"there are plenty available." -- Not really. Not for DOS. Not even one. I don't think it would be a problem if one existed. "once a fortnight" is too frequent to reboot my computer to Win7 just for one website. Actually, "once a century" would be too frequent. I mean it is acceptable for some rare and serious things, but not for viewing a website. We have no real way to view modern web as they intended to be displayed. I don't think it is relevant if we mostly don't even want. Even when we want, we can't.

---
DOS isn't about why. It's about why not.

KormaX(R)

17.02.2019, 12:32

@ iw2evk

Javascript for DOS

Perhaps it does not need to be integrated. Instead PADAR Attila's sound card drivers and Watcom's TCP/IP library should be integrated into this package to make it fully functional, but it still could stay stand-alone. We could call it from inside Links when we want to do so.

---
DOS isn't about why. It's about why not.

DosWorld(R)

19.02.2019, 00:47

@ Laaca

Javascript for DOS

> javasctipt interpreter for DOS

:no: :-(

---
Make DOS great again!

RayeR(R)

Homepage

CZ,
21.02.2019, 02:11

@ KormaX

Javascript for DOS

How would you call JS interpreter externaly from browser when it would need to do some visual changes on displayed page? I cannot imagine other use than direct integration to links but with new versions you will have to integrate it again and again...

---
DOS gives me freedom to unlimited HW access.

marcov(R)

21.02.2019, 13:27

@ RayeR

Javascript for DOS

> How would you call JS interpreter externaly from browser when it would need
> to do some visual changes on displayed page? I cannot imagine other use
> than direct integration to links but with new versions you will have to
> integrate it again and again...

Javascript must also be able to transform the webpage using a DOM model. A browser not written for javascr*** might have to rewrite its rendering engine to make that happen.

KormaX(R)

21.02.2019, 14:27

@ RayeR

Javascript for DOS

> How would you call JS interpreter externaly from browser when it would need
> to do some visual changes on displayed page? I cannot imagine other use
> than direct integration to links but with new versions you will have to
> integrate it again and again...

Just like how Arachne uses its APM packages, except, that Links does not have Dos Gateway Interface, so you are required to load the modified webpage manually... or you don't return to Links until you finish with the JS webpage. And this is what I originally thoughed about. Mikulas added a function that saves the clipboard to a file, so its content is accessible from DOS. If you have the proper batch file, AND the JS interpreter itself has its own WATTCP (or another internet access) implementation, it opens your webpage, you can do stuff in it than terminate it and go back to Links. The other option is to re-render the webpage over and over again, when a JS fuction is needed. This works, the old WebAccessGateway did this, and it still could, just no server uses it anymore. On a clien machine, however, it would be very uncomfortable.

By the way, I use the "magnet:" protocol as a limited DGI, because I created a .bat file which is added in Links as the magnet-program, but the .bat itself only forwards the text coming after "magnet: " as a command to the OS. Than I have standard names for stuff according to what am I planning to do with the data and have batch files for them. For Youtube videos, for example, I download the video page as Z:watch.htm (Z: is my RAM-disk) then I write "magnet: youtube 1 - " as URL. Than Links forwards "YOUTUBE 1 - " to COMMAND.COM which executes YTCRACK on Z:watch.html resulting Z:YOUTUBE.HTM, which contains the video file URL's in order to download them. It is designed to be displayed in a browser, originally in Arachne, I think, but my batch file, with this command line arguments, doen not do it, instead, it immediately executes my small C++ stuff, which finds the 640:480 or 640:360 version in it and leaves only that URL in the file, and nothing more. Then, WGET is immediately called to download the file as Z:1.1, which is then automatically renamed to %1.mp4. Then mplayer for Windows is loaded with DPMILD32.EXE to play Z:%1.mp4 with SDL output and 640:360 mode. All this happens when you download the actual page as Z:watch.html and then go to "magnet: youtube X - ", and you watch the video. Then you get back to the browser. This is only an example that of you are creative, you can take advantage on a lot of things. An external JS executer could be designed similarly. :)

---
DOS isn't about why. It's about why not.

Oso2k(R)

25.02.2019, 18:50

@ KormaX

Javascript for DOS

> > How would you call JS interpreter externaly from browser when it would
> need
> > to do some visual changes on displayed page? I cannot imagine other use
> > than direct integration to links but with new versions you will have to
> > integrate it again and again...
>
> Just like how Arachne uses its APM packages, except, that Links does not
> have Dos Gateway Interface, so you are required to load the modified
> webpage manually... or you don't return to Links until you finish with the
> JS webpage. And this is what I originally thoughed about. Mikulas added a
> function that saves the clipboard to a file, so its content is accessible
> from DOS. If you have the proper batch file, AND the JS interpreter itself
> has its own WATTCP (or another internet access) implementation, it opens
> your webpage, you can do stuff in it than terminate it and go back to
> Links. The other option is to re-render the webpage over and over again,
> when a JS fuction is needed. This works, the old WebAccessGateway did this,
> and it still could, just no server uses it anymore. On a clien machine,
> however, it would be very uncomfortable.
>
> By the way, I use the "magnet:" protocol as a limited DGI, because I
> created a .bat file which is added in Links as the magnet-program, but the
> .bat itself only forwards the text coming after "magnet: " as a command to
> the OS. Than I have standard names for stuff according to what am I
> planning to do with the data and have batch files for them. For Youtube
> videos, for example, I download the video page as Z:watch.htm (Z: is my
> RAM-disk) then I write "magnet: youtube 1 - " as URL. Than Links forwards
> "YOUTUBE 1 - " to COMMAND.COM which executes YTCRACK on Z:watch.html
> resulting Z:YOUTUBE.HTM, which contains the video file URL's in order to
> download them. It is designed to be displayed in a browser, originally in
> Arachne, I think, but my batch file, with this command line arguments, doen
> not do it, instead, it immediately executes my small C++ stuff, which finds
> the 640:480 or 640:360 version in it and leaves only that URL in the file,
> and nothing more. Then, WGET is immediately called to download the file as
> Z:1.1, which is then automatically renamed to %1.mp4. Then mplayer for
> Windows is loaded with DPMILD32.EXE to play Z:%1.mp4 with SDL output and
> 640:360 mode. All this happens when you download the actual page as
> Z:watch.html and then go to "magnet: youtube X - ", and you watch the
> video. Then you get back to the browser. This is only an example that of
> you are creative, you can take advantage on a lot of things. An external JS
> executer could be designed similarly. :)


Do you have your batch file available anywhere to download?

KormaX(R)

26.02.2019, 14:25

@ Oso2k

Javascript for DOS

> Do you have your batch file available anywhere to download?

Not yet. It HIGHLY depends on my system distribution I am building from years so it requires some modifications and comments and the utilities of course. But if you are interested I'll do these modifications and then I will upload the package. It will also include my Links configuration file, because the whole thing works best when Links forwards the command line to DOS.

Regards:
KormaX

---
DOS isn't about why. It's about why not.

iw2evk(R)

Magenta (Italy),
09.03.2019, 13:42

@ DosWorld

Javascript for DOS

This is the reply from mantainer of project of s interpreter for dos regarding use in Dos browser
-----snip--
Sorry, Javascript is just a programming language and, in this case, has nothing to do with the kind of Javascript used in web technology.
----snip--
so actually this is not the right solution for js browser on DOS

Roberto

KormaX(R)

16.03.2019, 15:30

@ Oso2k

Javascript for DOS

Hi!

I added a new announce entry about tha batch file. A have given the download link, and the package -- theoretically -- contains everything you will possibly need, except HX.

---
DOS isn't about why. It's about why not.

iw2evk(R)

Magenta (Italy),
24.03.2019, 18:48

@ iw2evk

Javascript for DOS

Hi all,

seem the C source of edbrowser http://edbrowse.org/ support JS via Ductape libraries https://duktape.org/

All 2 programs are in C / c++ so can be compiled with DJGPP ..

regards

Roberto

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
25.03.2019, 22:18

@ iw2evk

Javascript for DOS

> Hi all,
>
> seem the C source of edbrowser http://edbrowse.org/ support JS via Ductape
> libraries https://duktape.org/
>
> All 2 programs are in C / c++ so can be compiled with DJGPP ..
>
> regards
>
> Roberto

_WHY_ would anyone want to open up their DOS system
to the known JS vulnerabilities ???

---
--
http://glennmcc.org/

tom(R)

Homepage

Germany,
25.03.2019, 23:02

@ glennmcc

Javascript for DOS

> _WHY_ would anyone want to open up their DOS system
> to the known JS vulnerabilities ???

_WHY_ would anyone want to open up their DOS system
to the known EXE or COM vulnerabilities ???

note: executing foreign executables (JS,EXE,COM) as
administrator requires trust.

YMMV:-D

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
26.03.2019, 01:08

@ tom

Javascript for DOS

> > _WHY_ would anyone want to open up their DOS system
> > to the known JS vulnerabilities ???
>
> _WHY_ would anyone want to open up their DOS system
> to the known EXE or COM vulnerabilities ???
>
> note: executing foreign executables (JS,EXE,COM) as
> administrator requires trust.
>
> YMMV:-D

EXE & COM files can be scanned to be sure they are free of malware BEFORE executing.

JS embedded within web pages cannot be and therefore the malicious JS
has done its damage by simply taking a link to a page containing it.

---
--
http://glennmcc.org/

KormaX(R)

26.03.2019, 17:13
(edited by KormaX, 26.03.2019, 17:24)

@ glennmcc

Javascript for DOS

"_WHY_ would anyone want to open up their DOS system to the known JS vulnerabilities ???" -- Because I WANT to use some pages and services without rebooting my computer just for those pages."

"JS embedded within web pages cannot be and therefore the malicious JS has done its damage by simply taking a link to a page containing it." -- I'm not shure malware creators design scripts with any clue about the HW or the DOS API itself. If it wants to modify my registry... good luck :D Hijack my browser?

DEL *.*
COPY I:\DOSBROWSER\*.* C:\BROWSER\
ECHO ROFL

---
DOS isn't about why. It's about why not.

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
26.03.2019, 23:01

@ KormaX

Javascript for DOS

> "_WHY_ would anyone want to open up their DOS system to the known JS
> vulnerabilities ???" -- Because I WANT to use some pages and services
> without rebooting my computer just for those pages."
>
> "JS embedded within web pages cannot be and therefore the malicious JS has
> done its damage by simply taking a link to a page containing it." -- I'm
> not shure malware creators design scripts with any clue about the HW or the
> DOS API itself. If it wants to modify my registry... good luck :D Hijack my
> browser?
>
> DEL *.*
> COPY I:DOSBROWSER*.* C:BROWSER
> ECHO ROFL

http://glennmcc.org/download/never_mind.webm

;-)

---
--
http://glennmcc.org/

KormaX(R)

27.03.2019, 21:29

@ glennmcc

Javascript for DOS

Okay, THIS was playable on DOS without JS :D However, for Youtube, I had to wrote an overcomplicated script just to watch videos and I still have to write a binary to be able to comment and upload. Or reboot my computer to Windows. Or wait for a universal JS capable website renderer. Nobody expects it to execute EVERYTHING, but a proper website rendering is not too much, I thinks. I would still use Links for normal browsing and just call the JS capable stuff when needed.. but it IS needed sometimes.

---
DOS isn't about why. It's about why not.

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
28.03.2019, 00:21

@ KormaX

Javascript for DOS

> Okay, THIS was playable on DOS without JS :D However, for Youtube, I had to
> wrote an overcomplicated script just to watch videos and I still have to
> write a binary to be able to comment and upload. Or reboot my computer to
> Windows. Or wait for a universal JS capable website renderer. Nobody
> expects it to execute EVERYTHING, but a proper website rendering is not too
> much, I thinks. I would still use Links for normal browsing and just call
> the JS capable stuff when needed.. but it IS needed sometimes.

Have you ever considered running Linux and using dosbox for your DOS programs ?

---
--
http://glennmcc.org/

KormaX(R)

28.03.2019, 11:21

@ glennmcc

Javascript for DOS

"Have you ever considered running Linux and using dosbox for your DOS programs ?" -- What?! The whole memory space addressable with a 64 bit CPU is not huge enough to express my storm of indignation about this amount of disrespect of DOS in your highly offensive question about using any other OS with DOSBox rather than DOS itself (with, sometimes, DOSBox, of course). Really, this would be almost as huge dishonour as shooting a Star Trek movie with Vulcan destroyed by a scientifically inaccurate singularity. :D So no, I didn't.

---
DOS isn't about why. It's about why not.

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
28.03.2019, 16:31

@ KormaX

Javascript for DOS

> "Have you ever considered running Linux and using dosbox for your DOS
> programs ?" -- What?! The whole memory space addressable with a 64 bit CPU
> is not huge enough to express my storm of indignation about this amount of
> disrespect of DOS in your highly offensive question about using any other
> OS with DOSBox rather than DOS itself (with, sometimes, DOSBox, of course).
> Really, this would be almost as huge dishonour as shooting a Star Trek
> movie with Vulcan destroyed by a scientifically inaccurate singularity. :D
> So no, I didn't.

Oh, I see.... you are a "DOS purist".

OK then... to each their own. :-)

---
--
http://glennmcc.org/

marcov(R)

28.03.2019, 20:24

@ KormaX

Javascript for DOS

> "Have you ever considered running Linux and using dosbox for your DOS
> programs ?" -- What?! The whole memory space addressable with a 64 bit CPU

Well, it is larger in newer ones (as in the physical ram supported). So might I suggest an upgrade ? :-D

neozeed(R)

05.06.2019, 02:22

@ Laaca

Javascript for DOS

> There is a new development tool for DOS available. If you want to create
> some stuff for DOS but you did only web programming so far, it is maybe
> solution for you.
> DOjS is a javasctipt interpreter for DOS. I can handle sound (digitized and
> FM syntesis) and graphics (JS canvas, BMP support). It can be driven
> through keyboard or mouse.
> More info and download is on the GitHub:
> https://github.com/SuperIlu/DOjS

This looks pretty awesome! What a great way to get new kids interested in programming for MS-DOS via JS!

Also that embedded js library looks pretty interesting as well, it's incredibly tiny.

Laaca(R)

Homepage

Czech republic,
06.06.2019, 01:03

@ neozeed

Javascript for DOS

Have you managed to compile a binary of this tool?

---
DOS-u-akbar!

rr(R)

Homepage E-mail

Berlin, Germany,
16.06.2019, 17:06

@ Laaca

Javascript for DOS

> There is a new development tool for DOS available. If you want to create
> some stuff for DOS but you did only web programming so far, it is maybe
> solution for you.
> DOjS is a javasctipt interpreter for DOS. I can handle sound (digitized and
> FM syntesis) and graphics (JS canvas, BMP support). It can be driven
> through keyboard or mouse.
> More info and download is on the GitHub:
> https://github.com/SuperIlu/DOjS

Now also for text mode only: https://github.com/SuperIlu/jSH

For now jSH comes only with a single bigger example: JsCommander. A minimal file manager in the style of the well known Norton Commander.

[image]

Back to the board
Thread view  Mix view  Order
15864 Postings in 1463 Threads, 268 registered users, 29 users online (0 registered, 29 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum