TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #198 · 6 јан.

Первая директория в sys.path 🔸 Когда вы запускаете Python-интерпретатор в интерактивном режиме, в системные пути (sys.path) в самое начало добавляется текущая рабочая директория >>> for path in sys.path: ... print(f'"{path}"') "" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... Первая строка пустая, что и означает текущую рабочую директорию. 🔸 Если вы запускаете интерпретатор передавая скрипт как аргумент, то история получается иная. На первом месте будет директория в которой располагается скрипт. А текущая рабочая директория игнорируется. Пишем скрипт с таким содержанием: # script.py import sys for path in sys.path: print(f'"{path}"') Запускаем python3 /home/user/dev/script.py Получаем "/home/user/dev" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... 🔸 Если вы запускаете скрипт по имени модуля то на первом месте будет домашняя директория текущего юзера python3 -m script "/home/user" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... Скрипт должен быть доступен для импорта На что это влияет? На видимость модулей для импорта. Если вы ждёте, что, запустив скрипт по пути, сможете импортировать модули из текущей рабочей директории, то вы ошибаетесь. Придётся добавлять путь os.getcwd() в sys.path самостоятельно или заранее объявлять переменную PYTHONPATH. #basic

Hashtags

Резултати

Пронајдени 10 слични објави

Пребарај: #hackingetico

当前筛选 #hackingetico清除筛选
Repositorio data science

@repo_science · Post #3058 · 13.04.2023 г., 13:30

#hackingEtico 🛠️ All in One Hacking tool For Hackers🥇 👩‍💻: Hardik Zinzuvadiya ⭐️: 7.9k 🧮 1.3k 🔗Link ----- Canal principal: @repo_science Cupones: @freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3056 · 13.04.2023 г., 13:26

#hackingEtico 🛠️ yeswehack/vulnerable-code-snippets YesWeHack present code snippets containing several different vulnerabilities to practice your code analysis. The code snippets are beginner friendly but suitable for all levels! Twitter vulnerable snippets 👩‍💻: Yes We Hack yeswehack ⭐️: 229 🧮 15 🔗Link ----- Canal principal: @repo_science Cupones: @freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3048 · 12.04.2023 г., 15:45

#hackingEtico 👩‍💻 Web Security & Bug Bounty: Learn Penetration Testing in 2023 Become a bug bounty hunter! Learn to hack websites, fix vulnerabilities, and improve web security online for clients. 🌟 4.6 - 1216 votes 🗣️ Andrei Neagoie, Aleksa Tamburkovski 🔗Link ----- Canal principal:@repo_science Cupones:@freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3047 · 12.04.2023 г., 15:42

#hackingEtico 👩‍💻 The Complete Ethical Hacking Course Protect yourself from hackers & cyberattacks. Learn penetration testing + build security and coding tools with Python. 🌟 4.5 - 2732 votes 🗣️ Codestars by Rob Percival, Atil Samancioglu 🔗Link ----- Canal principal: @repo_science Cupones: @freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3045 · 12.04.2023 г., 15:37

#hackingEtico 👩‍💻 Complete Ethical Hacking Bootcamp 2021: Zero to Mastery Learn Ethical Hacking + Penetration Testing from scratch and master the most modern ethical hacking tools and best practices for 2021! You will practice real techniques used by black hat hackers, then learn to defend against them. ⏱ 26 Hours 📦 232 Lessons 🗣️: Andrei Neagoie & Aleksa Tamburkovski 🔗Link ----- Canal principal: @repo_science Cupones: @freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3063 · 15.04.2023 г., 16:45

#Python#HackingEtico 👨🏾‍💻 Python Ethical Hacking MASTERCLASS: Zero to Mastery Discover the secrets of ethical hacking with Python: coding essentials, password cracking, penetration testing and MORE! ⭐️4.8 🌐En 🔗Link ----- Canal principal: @repo_science Cupones: @freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3053 · 13.04.2023 г., 13:02

#hackingEtico#kaliLinux 👩‍💻 Kali Linux: Start Your Ethical Hacking Career with Kali Kali Linux tutorial. Learn Kali Linux from experts, start your ethical hacking journey with my Kali Linux course 🌟 4.9 - 136 votes 🗣️: Muharrem AYDIN, Fatih YILMAZ 🔗Link ----- Canal principal: @repo_science Cupones: @freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3052 · 13.04.2023 г., 12:58

#hackingEtico#android 👩‍💻 Android Hacking: Ethical Hacking for Android Apps & Devices Android hack| Hacking Android, Android penetration testing, App hacking, Android Ethical Hacking for Android apps&device 🌟 4.4 - 219 votes 🗣️: Muharrem AYDIN, Fatih YILMAZ 🔗Link ----- Canal principal: @repo_science Cupones: @freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3044 · 12.04.2023 г., 15:34

#hackingEtico 👨🏾‍💻 El #hacking#ético es una práctica que consiste en evadir la seguridad de un sistema informático con el objetivo de identificar las posibles vulneraciones y amenazas que existen en la red. Si quieres aprender más sobre #hackingEtico accede a estos materiales👇 📦Cursos 1-Complete Ethical Hacking Bootcamp 2-Web Security & Bug Bounty 3-The Complete Ethical Hacking Course 4-Android Hacking: Ethical Hacking for Android Apps & Devices 5-Kali Linux: Start Your Ethical Hacking Career with Kali 6-Python Ethical Hacking MASTERCLASS: Zero to Mastery ----- Canal principal: @repo_science Cupones: @freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3055 · 13.04.2023 г., 13:21

#hackingEtico#hacking_tool#toolkit 🛠️ AzeemIdrisi/PhoneSploit-Pro An all-in-one hacking tool to remotely exploit Android devices using ADB and Metasploit-Framework to get a Meterpreter session. 👩‍💻Mohd Azeem ⭐️ 457 🧮 70 🔗Link ----- Canal principal: @repo_science Cupones: @freecoupons_reposcience -----