---
title: "الحصول على كلمة مرور شبكة Wi-Fi التي تتصلون بها"
description: "password: \"!forHackers\" `"
canonical: https://oozou.com/til/get-the-password-of-the-wifi-you-re-on-9
locale: ar
date: 2020-10-13
topic: macos
---

# الحصول على كلمة مرور شبكة Wi-Fi التي تتصلون بها

> password: "!forHackers" `

Published: 2020-10-13 · Topic: [macos](https://oozou.com/ar/til-topics/macos) ([markdown](https://oozou.com/ar/til-topics/macos.md))

```shell
wifi_password() {
    airport="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport"
    ssid="`$airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'`"
    pwd="`security find-generic-password -D 'AirPort network password' -ga \"$ssid\" 2>&1 >/dev/null`"
    echo $pwd
}
```

```shell
$ wifi_password

password: "!forHackers"
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/ar/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
