Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, i know this is not the place that where i should post but ..
this website (https://samy.pl) used advanced technique when you press F12 to view the source code it tells you " You found Easter Egg #12!" and the same thing about right clicking for mouse! he even grab your IP addressand typing it such a like unix bash script and the interface like a Desktop mac OS! also check the power icon, i mean its great design but i wanna break the secret of that, Even if you try to opening the site through web developer tools it shows you this script:
Quote:
----------------------------------------------------------------------------
! Thanks for playing at samy.pl.
!
! You found Easter Egg #7!
!
! Please note, this is NOT the source to samy.pl.
! You have accessed the page incorrectly.
!
! In the various pages, you'll find benign code execution,
! seemingly invasive data exfiltration (that remains local
! to your machine and never reaches my system) and various
! innocuous challenges. Have fun!
!
! -samy kamkar
!----------------------------------------------------------------------------
does anyone here know what's going on with this website?
curl https://samy.pl/ -o samy.pl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 491 100 491 0 0 946 0 --:--:-- --:--:-- --:--:-- 944
cat samy.pl
<!------------------------------------------------------------------------------
! Welcome to samy.pl.
!
! In the various pages, you'll find benign code execution,
! seemingly invasive data exfiltration (that remains local
! to your machine and never reaches my system) and various
! innocuous challenges. Have fun!
!
! -samy kamkar
!------------------------------------------------------------------------------>
<script>
/*
No source for you! You found Easter egg #3
*/
</script>
If you get the source for that page with scripts run, you will get 26k of html and scripts.
Code:
<script>
var YOU_FOUND_THE_SOURCE_TO_SAMY_PL = "you are awesome!"
var total_easter_eggs = 23
/*
Thanks for playing!
There are currently 23 Easter Eggs on this site.
I hope you've enjoyed running into a few,
and perhaps you can find a few more!
Your internet friend, -samy
*/
</script>
...
<script>
if (navigator.userAgent.match(/Android|iPhone|iPod/i) && document.cookie.indexOf("iphone_redirect=false") == -1)
window.location = "code/";
</script>
...
when you press F12 to view the source code it tells you " You found Easter Egg #12!"
It's just intercepting the F12 key. Javascript can do that. Without javascript you get a whole lotta nothing ("this page isn't redirecting properly"). Calling that Easter eggs is a bit evil IMO, and so is this:
Quote:
! In the various pages, you'll find benign code execution,
! seemingly invasive data exfiltration (that remains local
! to your machine and never reaches my system) and various
! innocuous challenges. Have fun!
Yeah, sure. "benign" and "seemingly invasive". No thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.