Giter Site home page Giter Site logo

localnetwork-scanner's Introduction

LocalNetwork-Scanner

This a simple code for beginners to learn how to scan the local network to know how much IPes connected to it

دعوني أقدم لك تفسيرًا خطوة بخطوة:

استيراد المكتبات: يبدأ البرنامج بالاستيراد من مكتبة subprocess، والتي تسمح لنا بتشغيل الأوامر من داخل البرنامج. الدالة scan_network(ip_range): تأخذ نطاق IP كمعامل (مثل "192.168.0.1/24"). تقوم بتشغيل أمر nmap باستخدام النطاق المحدد. تسترد الناتج من الأمر (النتائج). الدالة parse_output(output): تأخذ النتائج النصية من الأمر nmap. تحلل النص وتستخرج عناوين IP للأجهزة المكتشفة. الدالة print_results(results): تأخذ قائمة العناوين الناتجة من الخطوة السابقة. تطبع قائمة الأجهزة المتصلة. الجزء الرئيسي للبرنامج: يحدد نطاق IP المراد فحصه (مثل "192.168.0.1/24"). يقوم بتشغيل الفحص باستخدام الدالة scan_network. يحلل النتائج باستخدام الدالة parse_output. يطبع قائمة الأجهزة باستخدام الدالة print_results. ملاحظة: يجب تعديل نطاق IP حسب الشبكة المحلية الخاصة بك. أتمنى أن يكون هذا الشرح مفيدًا لك!

localnetwork-scanner's People

Contributors

hackmain avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.