Skip to content

Instantly share code, notes, and snippets.

View mafiaguy's full-sized avatar
💻
Focusing

Siddhanth Dwivedi mafiaguy

💻
Focusing
View GitHub Profile
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
/* Resizing the Visualtization */
"autosize": "none",
"width": 500,
"height": 300,
"padding": 45,
"title": "Top Category Count",
"data": {
"url": {
@mafiaguy
mafiaguy / Send_email.py
Created November 5, 2021 04:19
Send an email using sns lambda
import boto3
sns_arn= 'arn:sns:region:key'
def send_sns():
sns = boto3.client('sns')
response = sns.publish(
TargetArn=sns_arn,
Subject="test email",
Message = 'This is a sample mail using SNS'
)

%253Cscript%253Ealert('XSS')%253C%252Fscript%253E

or 1=1

or 1=1--

or 1=1#

or 1=1/*

admin' --

@mafiaguy
mafiaguy / Learn CyberSecurity.md
Last active July 6, 2024 00:43
A curated list to learn cybersecurity.
@mafiaguy
mafiaguy / Application_Security_Questions_Answers.md
Last active May 28, 2024 18:30
Some of the queries that were asked in interviews for Application/Security Engineering roles and were submitted in Glassdoor.com. xss vulnerability infosec application-security interview-questions appsec webappsec sdlc websecurity devsecops security-engineering websec websecurity-reference security-team security-engineer-interview

Encryption and Authentication

* What is a three-way handshake?

The TCP handshake,TCP uses a three-way handshake to establish a reliable connection. The connection is full duplex, and both sides synchronize (SYN) and acknowledge (ACK) each other. The exchange of these four flags is performed in three steps—SYN,SYN- ACK, and ACK


  • How do cookies work?