Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deception #112

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 167 additions & 0 deletions Attendance.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
import pygame
import random
import math
import os

# Initialize Pygame
pygame.init()

# Set up the screen
screen_width = 1080
screen_height = 720
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption("Terminal Emulator")

# Set up fonts
font = pygame.font.SysFont("Consolas", 20)
input_font = pygame.font.SysFont("Consolas", 30)

# Set up colors
white = (255, 255, 255)
black = (0, 0, 0)
gray = (128, 128, 128)

# Set up variables
password = ""
students = [("You", 1234,"123.4.5.6",80), ("Emily", 5678,"123.4.5.6",90), ("Mike", 9012,"123.4.5.6",92), ("Sara", 3456,"123.4.5.6",95), ("David", 7890,"123.4.5.6",70),
("Anna", 2345,"123.4.5.6",60), ("Tom", 6789,"123.4.5.6",100), ("Julia", 123,"123.4.5.6",10), ("Peter", 4567,"123.4.5.6",2), ("Mary", 8901,"123.4.5.6",80),
("Jake", 5432,"123.4.5.6",98), ("Olivia", 9876,"123.4.5.6",100), ("Nick", 3210,"123.4.5.6",93), ("Eva", 7654,"123.4.5.6",97), ("Sam", 1098,"123.4.5.6",91)]
student_texts = [font.render(f"{i+1}. {name}/{id}: {ip} : {att}", True, white) for i, (name, id,ip,att) in enumerate(students)]
is_logged_in = False
radius_1 = 100
radius_2 = 100
distance = 400
angle_x = 20
angle_y = 20


WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
hue = 0

os.environ['SDL_VIDEO_CENTERED'] = '1'
RES = WIDTH, HEIGHT = 800, 800
FPS = 60

pixel_width = 20
pixel_height = 20

x_pixel = 0
y_pixel = 0






# Set up cursor timer
cursor_timer = 0

# Set up cursor visible flag
cursor_visible = True
list_typed = False
count=0
# Main game loop
running = True
while running:
# Handle events
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
elif event.type == pygame.KEYDOWN:
if event.unicode.isprintable() and not is_logged_in:
password += event.unicode
elif event.key == pygame.K_BACKSPACE:
password = password[:-1]
elif event.key == pygame.K_RETURN:
if password == "attendance":
is_logged_in = True
else:
is_logged_in= False
elif event.key == pygame.K_ESCAPE:
running = False

# Fill the screen with black
screen.fill((0, 0 ,0))

# Draw the terminal window
pygame.draw.rect(screen, white, (50, 50, screen_width - 100, screen_height - 100), 2)

# Draw the password prompt
password_text = font.render("Password:", True, white)
screen.blit(password_text, (70, 70))
pygame.draw.rect(screen, gray, (200, 70, 500, 40), 2)

# Calculate sin and cos values for rotation
sin_x = math.sin(angle_x)
cos_x = math.cos(angle_x)
sin_y = math.sin(angle_y)
cos_y = math.cos(angle_y)

# Draw the donut
for theta in range(0, 360, 10):
for phi in range(0, 360, 10):
# Calculate sin and cos values for the current theta and phi
sin_theta = math.sin(theta * math.pi / 180)
cos_theta = math.cos(theta * math.pi / 180)
sin_phi = math.sin(phi * math.pi / 180)
cos_phi = math.cos(phi * math.pi / 180)

# Calculate the x, y, and z coordinates of the point on the donut
x = distance + (radius_1 + radius_2 * cos_theta) * cos_phi
y = (radius_1 + radius_2 * cos_theta) * sin_phi
z = -radius_2 * sin_theta

# Apply rotation to the coordinates
x_rot = x * cos_y - z * sin_y
z_rot = z * cos_y + x * sin_y
y_rot = y * cos_x - z_rot * sin_x
z_rot = z_rot * cos_x + y * sin_x

# Project the 3D point onto the 2D screen
scale = distance / (distance - z_rot)
x_proj = int(screen_width / 2 + x_rot * scale)
y_proj = int(screen_height / 2 - y_rot * scale)

# Draw the point on the screen
pygame.draw.circle(screen, (0,0,255), (x_proj, y_proj), 2)

# Update the rotation angles
angle_x += 0.01
angle_y += 0.01


# Update cursor visibility
if pygame.time.get_ticks() - cursor_timer > 500:
cursor_visible = not cursor_visible
cursor_timer = pygame.time.get_ticks()

# Draw password input text
if not is_logged_in:
input_text = input_font.render(password + ("|" if cursor_visible else ""), True, white)
else:
input_text = input_font.render("Logged In Successfully", True, white)
screen.blit(input_text, (205, 75))

# Draw the student list if logged in

if is_logged_in and not list_typed:
student_list = font.render("Student List:", True, white)
screen.blit(student_list, (70, 120))
for i, student_text in enumerate(student_texts):
screen.blit(student_text, (70, 150 + i * 25))
count+=1
pygame.time.wait(200)
pygame.display.update()
if(count==15):
list_typed=True

if(list_typed==True):
pygame.time.wait(10000)
running=False

# Update the display
pygame.display.flip()

# Quit Pygame
pygame.quit()
20 changes: 20 additions & 0 deletions Beats.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Incredibox : Hack your way in with Cool Beats

## Link: [Incredibox](https://www.incredibox.com/)

<img width="1252" alt="Screenshot 2023-03-18 at 6 17 43 PM" src="https://user-images.githubusercontent.com/95586108/228787692-3f2893ad-4af7-444d-91ab-05b5d9573d71.png">

Incredibox is a music video game, developed and published by the French company So Far So Good (SFSG). The concept of the game is users dragging and dropping sound icons on different characters to make music. The player can find combos to unlock animated bonuses and record mixes to integrate a ranking. An automatic mode is also available to generate an endless composition of randomness.

# Versions

There are different versions of Incredibox in the game that the players can choose from. Each version has a musical style with a unique theme to it. The first four versions can be played both on the official Incredibox website demo and on the paid apps. While the remaining versions of the game are exclusive, they can only be played on the paid apps.
- Alpha - Old School Beatbox
- Little Miss - R&B Music
- Sunrise - Pop Music
- The Love - French House
- Brazil - Brazilian Music
- Alive - Japanese Culture
- Jeevan - Indian Synth
- Dystopia - Cyberpunk
- V9 - 90s Hip Hop Music
1 change: 1 addition & 0 deletions Decrypt1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCRYPTION : sb_doglapan_hai
Binary file added KP WAS HERE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions PARTICIPANTS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#FORMAT!

Name | Roll No. | Public IP
Priyanshi | B22064 | 2409:40d7:0:ab32:a31e:32:dee5:214b


15 changes: 15 additions & 0 deletions Pwned.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Have You Been Pwned??

Link to the website - **[Have I Been Pwned](https://haveibeenpwned.com)**

Have I Been Pwned? is a website that allows Internet users to check whether their personal data has been compromised by data breaches. The service collects and analyzes hundreds of database dumps and pastes containing information about billions of leaked accounts, and allows users to search for their own information by entering their username or email address. Users can also sign up to be notified if their email address appears in future dumps. The site has been widely touted as a valuable resource for Internet users wishing to protect their own security and privacy.

More Information on : [Wiki](https://en.wikipedia.org/wiki/Have_I_Been_Pwned%3F)

## Data breaches

Since its launch, the primary development focus of HIBP has been to add new data breaches as quickly as possible after they are leaked to the public.
In July 2015, online dating service [Ashley Madison](https://en.wikipedia.org/wiki/Ashley_Madison), known for encouraging users to have extramarital affairs , suffered a data breach , and the identities of more than 30 million users of the service were leaked to the public. The data breach received wide media coverage, presumably due to the large number of impacted users and the perceived shame of having an affair.


<img width="1000" alt="Hibp" src="https://user-images.githubusercontent.com/96137168/228787649-7d8f90e6-e327-4c56-a5da-f69bf6d8d528.png">
1 change: 1 addition & 0 deletions decrypt2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCRYPTION : chotibachihokya
64 changes: 64 additions & 0 deletions encrypt.txt

Large diffs are not rendered by default.

Binary file added encrypt1.docx.pdf
Binary file not shown.
Binary file added encrypt_Deanu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added merge3commits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added music.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added not pawned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added reset --hard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added stashed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.