aspnetmonsters / irrelevantcode Goto Github PK
View Code? Open in Web Editor NEWNot used, likely will remove
License: Apache License 2.0
Not used, likely will remove
License: Apache License 2.0
ZnVuY3Rpb24gaW52b2tlVGhlTm90Q29udGVzdCgpeyQoIiNob25leS1wb3QiKS5tb2RhbCgpfWNvbnNvbGUubG9nKCJPaCwgdGhlcmUncyBhIGNvbnRlc3QuIik7
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:
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
press decode
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
but like anyone curious you will open the source code
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">×</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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.