Coder Social home page Coder Social logo

irrelevantcode's People

Contributors

misterjames avatar

Watchers

 avatar  avatar  avatar  avatar

irrelevantcode's Issues

Not So Snoppy

ZnVuY3Rpb24gaW52b2tlVGhlTm90Q29udGVzdCgpeyQoIiNob25leS1wb3QiKS5tb2RhbCgpfWNvbnNvbGUubG9nKCJPaCwgdGhlcmUncyBhIGNvbnRlc3QuIik7

Aspnet Monster Contest Solution

The journey starts from the GitHub organization of AspNetMonsters. Once there if you scroll down you will see a weird looking repository which actually stands out due to its weird description which is :

Not used, likely will remove

So if you open the code in that repository
you will see this:
code
looking at the code the == at the end of the string interpolation format in Console.WriteLine will assure you that its a Base64 encoded string so time to decode it. I used an online decoder
decode
press decode
decoded
or you can clone the repository a do something like System.Text.Encoding.UTF8.GetString(Convert.FromBase64String($"{whysosnoopy}{mid}{term}"))
Now if you visit the website
you will see this
site
but like anyone curious you will open the source code
source
and will see some weird looking code in it

<form method="post">
    <div id="honey-pot" class="modal fade" tabindex="-1" role="dialog">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">Not a contest.</h4>
                </div>
                <div class="modal-body">
                    <p>If this were a contest, you'd put in a code here:</p>
                    <p><input name="secretCode" type="text" class="form-control" /></p>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-remove"></i> Don't Submit</button>
                </div>
            </div>
        </div>
    </div>
</form>

now if you scroll down further you will see the script files
<script src="/js/site.min.js?v=-qyse9cmprVHnWt0HGWj0Paxf0JuLs9hEpIH7S0EMus"></script>
now if you open the script file you will see
function invokeTheNotContest(){$("#honey-pot").modal()}console.log("Oh, there's a contest.");
now trigger the invokeTheNotContest() function from developer console you will see this dialogue
modal
if you remember the form tag in the source code there was an input tag in it <input name="secretCode" type="text" class="form-control" /> and the name of the parameter is secretCode if you remember correctly the was also a weird line in the code so that has to be the secretCode you are looking for.
Now just run the app and look at the value of notusedanywhere variable
output
enter it into to the dialogue and hit Don't Submit and voila you are done
It will prompt you that you have won the contest and have you tweet @AspNetMonsters to let them know.

Note: for decoding base64 in core clr add System.Text.Encoding package to dnxcore50:dependencies and use the overload method
img

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.