الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

للهاكر فقط : برنامج لفحص بورتات الضحية المفتوحة

Featured Replies

بتاريخ:

هذا البرنامج قمت بكتابته وفائدتة هو فحص المنافذ المفتوحة المعروفة او الشائعة كما تسمى في جهاز وذكر البرامج التي يمكنها استخدام ذلك المنفذ
وهو مفيد لشباب الشبكات ولمعشر الهكر ولعله يكون تشجيع لهم ليدخلوا في البرمجة بدل كونهم مستخدمين لبرامج جاهزة لا تعطيهم اية قيمة معرفية .

import java.util.*;
import java.net.*;
import java.io.*;

public class PortScanner {

public static void ReadPortsList(){
  Vector vec = new Vector();
  Vector tmpvec = null;
  StringTokenizer tokenizer = null;
  String line;
  int matrix_length = 0;
try {
      BufferedReader in = new BufferedReader(new FileReader("c:/portslist.txt"));
      while ((line = in.readLine()) != null) {
      int i = 0;
      tmpvec = new Vector();
      tokenizer = new StringTokenizer(line, "\t"); 
      InetAddress remote = InetAddress.getLocalHost();
      while( tokenizer.hasMoreTokens() ) {
      tmpvec.add( tokenizer.nextElement() );
      i++;
      if( i>matrix_length )
       matrix_length = i;
    }
    vec.add(tmpvec);
      }
      String[][] array2d = new String[ vec.size() ][ matrix_length ];
  for (int i = 0; i < vec.size(); i++) {
    for (int j = 0; j < matrix_length; j++) {
      try {
        array2d[i][j] = (String) ( (Vector) vec.get(i)).get(j);
      }
      catch (Exception ex) {
      }
    }
  }
  for (int port = 0; port <= 1023; port++) {
      try {
      InetAddress remote = InetAddress.getLocalHost();
      Socket s = new Socket( remote , port); 
      System.out.println("Port " + port + " is listening and it used for "  + array2d[port][1].toString() );
      s.close();
    }

    catch (IOException ex) {
    System.out.println( "Port : " + port + " is Closed");
    }    
  }

      in.close();
  } catch (IOException e) {
  System.out.print(e.toString());
  }
}

public static void main(String[] args) {
ReadPortsList();
}
}



ولاحظ ان البيانات يقوم بقرائتها من ملف نصي يحوي قائمة بالمنافذ والبرامج التي تستخدمها
فبعد ان يفحص المنفذ ويجده مفتوحاً يقوم بقراءة بياناته من ذلك الملف .

بالتوفيق .

portslist.txt

بتاريخ:

اذا انت كتبت هذا الكود فالله يعطيك العافية وما شاء الله عليك

بتاريخ:

ما شاء الله ، وإلى الامام دوما .........................................

الله يحفظك ويرعاك

بتاريخ:

be sure ,is completed code

بتاريخ:
  • كاتب الموضوع

be sure ,is completed code

هل لديك مشكلة في تشغيله ؟؟ وهل هذا سؤال ام توجيه !!
الرجاء ذكر ذلك ليستفيد الاخرون .

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.