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.

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