• Breaking News

    Sunday, November 18, 2018

    Revealing password under HTML browser(java script?), alternatives? tried $0.value, and changing type="text" code inside. Ask Programming

    Revealing password under HTML browser(java script?), alternatives? tried $0.value, and changing type="text" code inside. Ask Programming


    Revealing password under HTML browser(java script?), alternatives? tried $0.value, and changing type="text" code inside.

    Posted: 18 Nov 2018 10:22 AM PST

    So, in short, this is my router at home, and to switch routers I need the login required to put in the new router. I actually know this password and can provide proof if needed. But like a Human, I am sometimes I use this trick to remind myself of my passwords, like using gmail, or some random website I have not used in a while.... But on this router Netgear R7800 if I click the password spot, the password disappears; if I try $0.value on the console, it will show just "*********", and if I try and change to the type of input to text it will show "*********" (this one I think its a different source) but still same result. so after searching on the "elements" on chrome/firefox, I found a few codes that will appear related to this.

    I can post all of it if you would like but my question is, how do I reveal this password?

    edit: I guess Reddit uses some of the script, and added to the page, but it is just 3 sections of code i posted.

    this is the input box of the password:

    <td nowrap="" align="right">

    <input type="password" name="pppoe\_passwd" id ="pppoe\_passwd" maxlength="64" size="16" onfocus= "change\_pppoe\_password(this);" onkeypress="return getkey('ssid', event)"> </td> 

    After some more searching around I think these two following codes are also related to it:

    ___________________________________________________

    <Script>

    ....

    function init_passwd()

    {

    var form=document.forms\[0\]; if(pppoe\_empty == "0") form.pppoe\_passwd.value = ""; else form.pppoe\_passwd.value = "\*\*\*\*\*\*\*\*\*"; 

    }

    and this one:

    ________________________________

    if( pppoe_empty == "0" )

    { if( get\_browser() == "Firefox" ) { form.pppoe\_passwd.type = "text"; } else { form.pppoe\_passwd.outerHTML='<input type="text" name="pppoe\_passwd" id="pppoe\_passwd" 

    maxlength="64" size="16" onFocus="this.select();change_pppoe_password(this);" onKeyPress="return getkey(\'ssid\',

    event)">';

     } } else if( get\_browser() == "IE" ) { form.pppoe\_passwd.outerHTML='<input type="password" name="pppoe\_passwd" id="pppoe\_passwd" 

    maxlength="64" size="16" style="width: 126px" onFocus="change_pppoe_password(this);" onKeyPress="return

    getkey(\'ssid\', event)">';

    } init\_passwd(); form.pppoe\_dod.value = '0'; show\_idleout(form,form.pppoe\_dod.value); if(ipv6\_type=="6to4" || (ipv6\_type=="autoDetect"&&connection\_type=="6to4 Tunnel") || (ipv6\_type=="pppoe" && 

    ipv6_sameinfo=="1"))

    { form.pppoe\_dod.value = '0'; //bug 31125 form.pppoe\_dod.disabled = true; } else { form.pppoe\_dod.disabled = false; } 

    Thank You

    submitted by /u/Hungryforfood2000
    [link] [comments]

    How to open and interact with a Web Browser with C#?

    Posted: 18 Nov 2018 07:15 PM PST

    I'm working on a coding challenge that focuses on automation of several types within a browser (Such as a simulated mouse click, hovering over an area and pressing a key, etc.). I've found that I can open a web browser using "Process.Start("webAddressHere.com");" but from there I'm a bit lost. I'm not even sure if I've got the correct approach. Does anyone know of any tutorials or other resources for learning how to accomplish this?

    Edit: Also, I'm working on a Mac using Visual Studio for Mac.

    submitted by /u/corwin_of_amber_
    [link] [comments]

    I know what I want as a program but I'm not creative at all. Should I focus on the program's actual design last?

    Posted: 18 Nov 2018 09:23 PM PST

    How important is a programs UI? Are you better off creating a terrible design that works, and focus on making it look nice as one of the last steps?

    submitted by /u/strunberg
    [link] [comments]

    How can I make a billed app to app calling app for smartphones that routes based on skills/characteristics?

    Posted: 18 Nov 2018 05:51 PM PST

    This link shows you how to create a simple calling app on android, but it looks to me that the app calls a phone number (see last image).

    What I want is an app that lets users sign up without using/revealing their phone number, add tags like gender, language etc, and have other users make calls to users based on the tags, rather than selecting a single phone number or user to call. Then all users with that tag would get a call, but when one person answers, the other call disconnects. For example, say a user wants to call a person who speaks a specific language, all people with that language as a tag would receive a call, but when one person answers, the other call drops. The caller would not dial a number or even click on a user to call them directly, instead, they'd do a search of their criteria (all [insert language] speakers) and start a call to all the 'search results'.

    submitted by /u/Stephanie_chenxu
    [link] [comments]

    Unable to properly install package from test.pypi.org

    Posted: 18 Nov 2018 05:50 PM PST

    I was playing around with a pile of code that I had accumulated over time. (Here's a link to the repo). I wanted to put it on [pypi.org](pypi.org). I followed these instructions and everything seemed fine. My problem comes when I tried to install this in a venv. When I run

    sudo pip install --index-url https://test.pypi.org/simple/ apiaccessor 

    it appears to install correctly, but when I try to run

    import apiaccessor 

    it fails to import. I check where pip installs packages, and I see the metadata for my package, but the actual code wasn't there. Can anyone give me some pointers to resolve this?

    submitted by /u/MrTrainCow
    [link] [comments]

    Why do we need Permissions in RBAC?

    Posted: 18 Nov 2018 03:32 PM PST

    A common pattern in programming an authorization system is RBAC.

    ~~~~~~~

    DESCRIPTION - TRADITIONAL RBAC

    A permission represents the ability to perform some operation.

    A role is a container of many permissions.

    A user can be assigned many permissions

    A user can be assigned many roles

    ~~~~~~~

    My question here is, why do we need a distinction between roles and permissions? It seems the system would be greatly simplified if we removed the distinction.

    Let's call this Power-based auth control (PBAC)

    ~~~~~~~

    NEW DESCRIPTION - PBAC

    A power represents the ability to perform some operation.

    Powers can include many other powers.

    A user can have many powers, recursively.

    ~~~~~~~

    This seems to me to be much easier to deal with than RBAC.... So why do we need the permissions/role distinction at all?

    submitted by /u/platistocrates
    [link] [comments]

    Any subreddits similar to css_irl? Possibly using other languages.

    Posted: 18 Nov 2018 02:53 PM PST

    I find that the /r/css_irl subreddit is oddly one of the most effective programming subreddits at allowing me to passively take in information.

    Are there any similar subreddits?

    I am mainly looking for subs where the 'joke' is written in code, and the link acts as a punchline.

    submitted by /u/M0sesx
    [link] [comments]

    Is there a way to password protect your data using a script and without any additional software like veracrypt?

    Posted: 18 Nov 2018 02:45 PM PST

    I am looking for a small script that I can write on my own whenever I want to. I am not looking at writing a large piece of code

    submitted by /u/lovesprite
    [link] [comments]

    Why we need application code when database can be enough?

    Posted: 18 Nov 2018 07:04 AM PST

    We build applications that interact with the database and keep business logic separate from our data. Yet our data is what business is, as we would need the data stored to keep running our business model.

    And looking at the database, they provide essentially what our application business logic provides, if we say different constructs of programming are all available in database.

    I think we can write our business logic, the way we write our applications into database and only write code necessary to serve the request and return response given by database?

    Is this separation of concern only or there are things which I don't know yet when building applications?

    Note: By Database here I mean generally those datastores which have these capabilities, like Oracle, MySQL, SQLServer etc.

    EDIT: This post is for open discussion and getting to know your thoughts

    EDIT 2: Since many people have pour their views, I would like to just clarify another thing that if we have the tools in database same as a language construct? We can use that to manipulate our data and use the application to provide UI/UX or a frontend to interact with the data but put all processing of data in database.

    submitted by /u/NoConversation8
    [link] [comments]

    Best resources for learning C with modern best practices?

    Posted: 17 Nov 2018 09:56 PM PST

    I have a copy of K&R, but I'm wondering what are the best resources for discovering best practices that have developed over the years, common pitfalls, etc. For example, when is it better to use int vs int32_t?.

    I've written plenty of "code challenge" type C programs when $interpreted_language was too slow, but I'm looking for more information about structuring larger (cross platform) applications effectively.

    Also information about make vs CMake, gcc vs clang, etc :)

    I'm mostly looking for books or comprehensive online documentation, not really short tidbits.

    Thanks in advance!

    submitted by /u/quantifiableNonsense
    [link] [comments]

    Advice about game creation.

    Posted: 18 Nov 2018 01:06 PM PST

    Hi,

    I am an Electrical and Computer Engineering student and recently I completed a project witch required us to create a simple game in Unity. After successfully creating that game demo , I got interested in game creation. I've had a game concept in mind for quite a while now and I don't know if it is worth to actually dedicate time to make it. Even if i make it , at most I'll upload it to a amateur dev site. So my question is this , should I try it or is it not worth it?

    tl;dr: should i spend/waste time on learning how to make a game just for personal satisfaction or should I just focus on uni ?worth it?

    submitted by /u/JasonGryparis
    [link] [comments]

    Unity Project: Import CAD File through GUI built in GUI and create an environment automatically (Building on a plane)

    Posted: 18 Nov 2018 10:13 AM PST

    Hello, hope everyones having a great weekend. I am working on a unity project, and I have run into a big hindrance. The unity project I am working on requires me to import a CAD file through a GUI, and dynamically create a environment of that CAD file (Building for example). How would I go about it?

    submitted by /u/CapableCauliflower
    [link] [comments]

    How can I generate barcode with information?

    Posted: 18 Nov 2018 06:25 AM PST

    I am working on an app where I want to create a barcode which has information about product barcodes and their quantity, kind of like a hash with some information used to create another hash. I hope you get the point.

    Barcode will be generated on Android and there's already some library providing it? Then I want to scan this newly generated barcode in a machine and output the information stored in it on a webpage?

    I don't know much about barcodes, but I have found that barcode and QRcode belong to same family but 1D and 2D respectively but I don't know how can I store information and retrieve back in barcode.

    submitted by /u/NoConversation8
    [link] [comments]

    Change My View? Static Globals vs DI: Practicality vs Best Practice?

    Posted: 18 Nov 2018 03:54 AM PST

    I am currently working on a 15+ years old PHP project that didn't employ DI or anything fancy. The lead developer of this project is constantly telling me that in the past everything was way worse than it is now when I question certain parts of the code. Looking at the VCS history he is definitely right and whatever monstrum that project has been in the past I have the feeling that we have it under control and can move it forward.

    Repeatedly I have told myself that if I did a green field project I'd use dependency injection and all the other good practices from the beginning. But I'm beginning to question that. We have a limited set of static globals in the form of singletons and a service locator. It doesn't grow. We know how to change existing code and write new code in order to make it testable, i.e. independent of these static globals/singletons. We also made these mostly immutable. It works.

    A specific example is the usage of a shared language object. We access it through the static call Runtime::getLanguage(). It is evaluated lazily, there is no setter, we cannot modify anything but we can rely on it being set according to HTTP content negotiation or any session value overriding that or any URI route overriding it (/en/, /fr/ and so on). In order to test very old, legacy stuff we use a "static Runtime mock" that doesn't rely on HTTP but newer methods and classes get Language injected. Sometimes we also refactor older parts towards DI. But since both approaches work equally well for us I'm beginning to question whether the latter is really better and why it would be?

    Reading Martin Fowler's thoughts on DI I get the impression that the service locator is not an anti-pattern per se.

    Would welcome your thoughts.

    submitted by /u/cyrusol
    [link] [comments]

    No comments:

    Post a Comment