📖
NOTES
  • Welcome!
  • Reference
    • Hacking
      • Penetration Testing Resources Bookmarks
        • Research Links
        • Cheat Sheet
        • Learning/Training
        • Tools
        • Payloads
        • Shell
        • AI
        • Reads
        • Podcast
        • Social Engineering
        • Payloads
      • Web/App Pentesting
        • SQL Injection
          • SQL Injection In The URL
          • SQL Injection In The Search Field
          • SQL Injection in Login forms
          • Boolean SQL Injection Blind
          • Time based SQL Injection Blind
          • Bypassing SQL Filters
          • SQL Injection with sqlmap
          • XPath Injection - Authentication Bypass
            • XPath Advanced Data Exfiltration
          • Payloads
        • XSS
          • Payloads
          • XSS Reflected
          • XSS Stored
          • Dom-based
          • Blind
        • Command Injection
          • Payloads
        • File Upload
          • Payloads
          • Bypass Filters
          • File Upload Tricks
        • SSRF
          • Payloads
        • LFI/RFI
          • Payloads
        • LDAP Injection
      • Port Swigger
        • Access control
          • Lab: Unprotected admin functionality
          • Unprotected admin functionality with unpredictable URL
          • User role controlled by request parameter
          • User ID controlled by request parameter, with unpredictable user IDs
          • User ID controlled by request parameter with password disclosure
        • Authentication
          • Username enumeration via different responses
        • Server-side request forgery (SSRF)
          • Basic SSRF against the local server
          • Basic SSRF against another back-end system
        • File Upload Vulnerabilities
          • Remote code execution via web shell upload
        • SQL Injection
          • SQL injection vulnerability in WHERE clause allowing retrieval of hidden data
      • Burp
        • Setting up Macro for intruder
      • ☁️Cloud
        • Tools
        • AWS
          • 🪣S3 Buckets
          • Amazon IAM
          • Dockers
            • Tools
        • Azure
        • GCP
      • Networking
        • Cheat Sheet
      • Hardware Hacking
        • Computer BIOS
    • HTML/CSS/JAVA
      • Tools
      • HTTP Response Status Codes
      • Bootstrap Templates
      • SSL
      • cURL
      • Grep
    • DataBase
      • My SQL
        • Cheat Sheet
        • Tools
    • PYTHON3
      • Code Resources
      • Python Reference Guide
        • Cheat Sheet
      • Code Projects
        • Jiggler Mouse
        • loan calculator
        • Bilnd LDAP Data Exfiltration
    • SEO
      • Tools
      • On-Page SEO
      • Local SEO and Keyword Research
      • Content Optimization
      • Technical SEO
      • Off-Page SEO Tools
      • Google Ads
    • Cloud
      • AWS
        • Light Sail
          • Hosting Website on Light Sail and Namecheap
        • Boto3
      • Azure
      • GCP
    • Files
      • PDF
Powered by GitBook
On this page
  1. Reference
  2. PYTHON3

Python Reference Guide

Basic Concepts:

  1. Variables and Data Types

    • int, float, str, bool

    • Variables and assignment (=, +=, -=)

  2. Control Flow

    • if, else, elif: Conditional statements

    • for, while: Loop constructs

    • break, continue: Loop control

    • try, except, finally, raise: Exception handling

  3. Functions and Modules

    • def: Function definition

    • return: Function return values

    • import, from, as: Module importation

Data Structures:

  1. Lists

    • Indexing, slicing

    • Methods: append, remove, pop, extend, sort

  2. Dictionaries

    • Usage: {key: value} pairs

    • Methods: keys, values, items, get, update

  3. Tuples and Sets

    • Tuples: Immutable

    • Sets: add, remove, union, intersection

Advanced Concepts:

  1. Object-Oriented Programming

    • class, object

    • init, self

    • Inheritance, Encapsulation, Polymorphism

  2. Iterators and Generators

    • yield: Generator functions

    • iter, next: Iterators

  3. List Comprehensions and Generators

    • Concise creation of lists and generators

  4. Decorators and Context Managers

    • @: Decorator syntax

    • with: Context managers

  5. Lambda Functions

    • Anonymous functions

Pythonic Concepts:

  1. Comprehensions (List, Dictionary, Set)

  2. Slicing

  3. Unpacking

  4. The Zen of Python: import this

Remember: Python is an evolving language. Keep up-to-date with the latest versions and best practices.

PreviousCode ResourcesNextCheat Sheet

Last updated 1 year ago