This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Ta©ti_Tac0Z's profile picture

The firebox browser project

Started by Ta©ti_Tac0Z, 15 July 2018 - 07:07 PM
Ta©ti_Tac0Z #1
Posted 15 July 2018 - 09:07 PM
Welcome to the firebox browser project (not to be confused with firefox)
- A CC browser

Q&A:
q1: does this browser load html?
a1: partly, am working on a html parser but this is work in progress (if you open a page that the browser doesn't know what is it will ask you if you wish to try to parse it to NWPF
q2: but what can this use then?
a2: firebox uses a file type called NWPF witch is also a type of "makeup language" witch is made for the browser. there is also some "side-projects" as for instance: MOV files, MUSIC files,
and it can rendere nfp (paintutils image) images
q3: well what can NWPF do then?
a3: all this can be seen on the wiki
q4: should i suggest chances and ideas?
a4: yes, that would be great
Key-Features:
-uses the http api and can show any file on the internet (you can also read files from your local filesystem by useing: localfile://filename)
-MOV file rendere (MOV file is a file type made by me i may post my moviecreater on the forum soon
-NFP (paintutils image) file rendere
-MUSIC player (also a file type of me a musicmaker program is my next thing to post about)
-NWPF simple to use "makeup langauge" see the wiki for forther infomation
-HTML rendere witch will be inproved as the time goes on
-all these types of files can be used in side a NWPF document
-more to come, some not written
The wiki:
the wiki will be avalable at: http://cc.noahtg.com/wiki
its under devopment but its avalable
The actemt on a html to nwpf parser:
at the mument this have some problems with tags inside 10's of other tags but here is one of my pages NWPF'ifired:

as i said this was one of the times where my parser worked
(NOTE: that the website that this browser is showing is really old and one of my first html projects… so if you want to be able to sleep tonight then don't visit it ever is awful. cc.noahtg.com is where all my new cc websites magic is)
but i don't have a website to post nwpf pages to:
you can load nwpf and other filetypes from you local filesystem but thats not cool
thats why you are free to upload both images and nwpf and yeah all you want to my website, the magic starts at: http://cc.noahtg.com/addpage.php
that leads me to my next thing: its possible to have both html and nwpf in a html file more about that on the wiki for instance: page on a windows 10 computer:

page on firebox:

i call it a mutil-page
(all tho all spam whould be deleted and the user banned)
this is all i have time to write today
versions:
0.1: pastebin: pastebin get egECt2nz firebox_browser.lua
made by tacti_tac0z (ealier knowen as: noahthegame)
do not copy!
i advice you to not run this program on a monitor.
Edited on 16 July 2018 - 09:21 PM
Ta©ti_Tac0Z #2
Posted 16 July 2018 - 11:24 PM
The wiki is now partly done, still a lot of tags to documented, and exables to make, the wiki is avalable here: http://cc.noahtg.com/wiki/?p=start
EveryOS #3
Posted 17 July 2018 - 11:17 PM
I tried using it, it just said "As you can see, this is heavily a work in progress"

Edited on 17 July 2018 - 09:19 PM
Ta©ti_Tac0Z #4
Posted 18 July 2018 - 01:42 AM
yes this is becuse the contents of the google.com website all most only consist of stuff added by a javascript script witch this browser doesn't support i did say it was work in progess and only is going to handle simple html websites. google.com is not exacly simple. am really happy that you try my project tho, also the xml parser i found sems to have a problem with a lot of tags inside a lot of tags (may also be my not-being-able-to-do-stuff). as you maybe can see the parser made a blank line becuse it also nerver got to the text stuff
aslo if it did all you whould be able to see may be "am felling lucky" and "seach" and some copy right stuff, given that google is 80% google logo (may also show you account name and the buttons to the right) my point is: "google is not the place to start"

i knew from the start that my browser whouldn't be exacly that usefull infact i nerver planned to make the html parser it was just a little side project of mine

all that aside i am again really happy that you took your time and tryed it
Edited on 17 July 2018 - 11:44 PM
EveryOS #5
Posted 18 July 2018 - 08:39 PM
Perhaps, instead of showing that screen, you just show what you can (nonscript tags and anything not in a script or style tag), as well as a notification "this page could not be fully loaded"
Ta©ti_Tac0Z #6
Posted 25 July 2018 - 09:33 PM
yeah good idea
Ta©ti_Tac0Z #7
Posted 25 July 2018 - 11:44 PM
hallo to you YES YOU, you know who you are, trying to upload php code to my website eh?
well thanks are you going to say WHO you are or am i going to need to find out?

yes thats right SOME body aboused my addpage system.
Dave-ee Jones #8
Posted 26 July 2018 - 05:22 AM
Shoulda known it was going to happen, though. I'm assuming you've got a download handler to prevent that from happening?
osmarks #9
Posted 26 July 2018 - 12:20 PM
hallo to you YES YOU, you know who you are, trying to upload php code to my website eh?
well thanks are you going to say WHO you are or am i going to need to find out?

yes thats right SOME body aboused my addpage system.
I mean, if you go around not preventing stuff like that properly, it'll happen, inevitably.
Ta©ti_Tac0Z #10
Posted 27 July 2018 - 04:43 PM
i didn't tell you want happened? you know what happend?
EDIT: yeah i told you in my own repley…

Shoulda known it was going to happen, though. I'm assuming you've got a download handler to prevent that from happening?

i haven't opened the page yet but i made sure poeple can't name a file with the extection of php

greatfully the guy didn't make any major damage
(it seems the guy first testet if he chould there after uploaded some random snipets form the internet, greatfully - again - my php config didn't let him do what he was trying to)
Edited on 27 July 2018 - 02:44 PM
Ta©ti_Tac0Z #11
Posted 27 July 2018 - 04:50 PM
but if one of you two knows a little more about php then i do then perhaps you can tell me what he tryed to? becuse he was useing some commands (yes commands not functions) that i don't understand.

just looking in the file system it sems nothing has been "damaged"
Luca_S #12
Posted 27 July 2018 - 07:51 PM
but if one of you two knows a little more about php then i do then perhaps you can tell me what he tryed to? becuse he was useing some commands (yes commands not functions) that i don't understand.

just looking in the file system it sems nothing has been "damaged"

Send me a copy of the PHP files uploaded via PM and I will take a look.

i haven't opened the page yet but i made sure poeple can't name a file with the extection of php
Guessing from your screenshot you only disabled the selection of PHP file on the client side, meaning if somebody just ignores that they can upload a .php you would need an additional check on the server side to prevent that.
EveryOS #13
Posted 28 July 2018 - 01:12 AM
DO YOU THINK THIS IS THE SAME PERSON WHO ONCE HACKED THE CC FORUMS 2 YR AGO!!!???
Ta©ti_Tac0Z #14
Posted 10 August 2018 - 07:41 PM
ummm becuse of the fact that i am unable to see your face i am not avlable to see what mood you're in or if this is said for fun

but if one of you two knows a little more about php then i do then perhaps you can tell me what he tryed to? becuse he was useing some commands (yes commands not functions) that i don't understand.

just looking in the file system it sems nothing has been "damaged"

Send me a copy of the PHP files uploaded via PM and I will take a look.

i haven't opened the page yet but i made sure poeple can't name a file with the extection of php
Guessing from your screenshot you only disabled the selection of PHP file on the client side, meaning if somebody just ignores that they can upload a .php you would need an additional check on the server side to prevent that.

yeah i know what am doing
Luca_S #15
Posted 11 August 2018 - 07:17 PM
-snip-
yeah i know what am doing

Tbh if that were the case, no one would've been able to upload PHP code to your server and execute it.
Ta©ti_Tac0Z #16
Posted 13 August 2018 - 12:03 AM
-snip-
yeah i know what am doing

Tbh if that were the case, no one would've been able to upload PHP code to your server and execute it.

i fixed the security issue after
osmarks #17
Posted 15 August 2018 - 11:39 AM
-snip-
yeah i know what am doing

Tbh if that were the case, no one would've been able to upload PHP code to your server and execute it.

i fixed the security issue after
1. if you had actually thought this through it wouldn't have had security issues in the first place.
2. if it's fixed why is the addpage thing still down?
Ta©ti_Tac0Z #18
Posted 15 August 2018 - 05:35 PM
-snip-
yeah i know what am doing

Tbh if that were the case, no one would've been able to upload PHP code to your server and execute it.

i fixed the security issue after
1. if you had actually thought this through it wouldn't have had security issues in the first place.
2. if it's fixed why is the addpage thing still down?

becuse i haven't yet got the time to test it (meaning i did fix it there's just a

echo "the page is currently down";
exit;

in the front)
Luca_S #19
Posted 15 August 2018 - 08:15 PM
becuse i haven't yet got the time to test it (meaning i did fix it there's just a

echo "the page is currently down";
exit;

in the front)

That's not really a fix. Just a little tip, if you want to get the extension of the file use
pathinfo($_FILES["name_of_post_field"]["name"],PATHINFO_EXTENSION)
This will get the extension of the file you are saving, IF and ONLY IF you save the file by the name it was originally when uploaded(e.g. user uploads test.jpg you save it to /var/www/html/usercontent/<username>/test.jpg, etc.)
Edited on 15 August 2018 - 06:15 PM
Ta©ti_Tac0Z #20
Posted 19 August 2018 - 06:30 AM
becuse i haven't yet got the time to test it (meaning i did fix it there's just a

echo "the page is currently down";
exit;

in the front)

That's not really a fix.

can we stop talking about this now?
DanyGames2014 #21
Posted 08 September 2018 - 12:50 PM
This is awesome idea and i appreciate work you've put into this but i have some things to say :

When i scroll everything is blinking
Maybe GUI redesign will not be that bad because this design isnt well arranged mabye just do standard browser layout
When i leave adress bar empty and press ENTER the whole browser just crashes
Also it asks me everytime i start the browser if i want to use sound