• 04-01-2020, 00:34:02
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Arkadaşlar hazırlamış olduğum Klasik ASP scripti sadece benim belirlediğim PC localhostunda çalışması için MAC adresi almam gerekiyor. Böylece dosyalar başka bir PC de localhosta atılsa da çalışmayacak. Klasik ASP ile Mac adresini nasıl alırım acil yardım lütfen



    Konu güncel arkadaşlar
  • 10-02-2020, 19:16:08
    #2
    Dim IPHEntry As IPHostEntry
    Dim IPAdd() As IPAddress
    Dim i As Integer
    IPHEntry = System.Net.Dns.GetHostByName(Dns.GetHostName())
    IPAdd = IPHEntry.AddressList
    txtComputerName.Text = Dns.GetHostName()
    txtIPAddress.Text = IPAdd(i).ToString
    Dim theNetworkInterfaces() As System.Net.NetworkInformation.NetworkInterface = System.Net.NetworkInformation.NetworkInterface.Get AllNetworkInterfaces()
    For Each currentInterface As System.Net.NetworkInformation.NetworkInterface In theNetworkInterfaces
    If currentInterface.OperationalStatus = Net.NetworkInformation.OperationalStatus.Up And currentInterface.NetworkInterfaceType.ToString() = "Ethernet" Then
    txtMACAddress.Text = currentInterface.GetPhysicalAddress.ToString
    End If
    Next
  • 10-02-2020, 19:18:34
    #3
    🌐 𝘀𝗼𝗰𝗶𝗳𝗹𝘆.𝗰𝗼𝗺
    BtClose adlı üyeden alıntı: mesajı görüntüle
    Dim IPHEntry As IPHostEntry
    Dim IPAdd() As IPAddress
    Dim i As Integer
    IPHEntry = System.Net.Dns.GetHostByName(Dns.GetHostName())
    IPAdd = IPHEntry.AddressList
    txtComputerName.Text = Dns.GetHostName()
    txtIPAddress.Text = IPAdd(i).ToString
    Dim theNetworkInterfaces() As System.Net.NetworkInformation.NetworkInterface = System.Net.NetworkInformation.NetworkInterface.Get AllNetworkInterfaces()
    For Each currentInterface As System.Net.NetworkInformation.NetworkInterface In theNetworkInterfaces
    If currentInterface.OperationalStatus = Net.NetworkInformation.OperationalStatus.Up And currentInterface.NetworkInterfaceType.ToString() = "Ethernet" Then
    txtMACAddress.Text = currentInterface.GetPhysicalAddress.ToString
    End If
    Next
    Klasik ASP'de bu kodlar çalışmaz.
  • 12-02-2020, 08:48:45
    #4
    bi wscript çalıştıracak alınabilir sanırım.
    sizin daha önceki mesajlarınızıda gördüm asp ile güvenilir bir şifreleme yapmak ne yazıkkı mümkün değil. pclerin mac adresleri değiştirilebiliniyor genelde.
  • 12-02-2020, 08:51:13
    #5
    Takip
  • 06-04-2020, 15:16:17
    #6
    Asp sayfaları ve diğer web programlama scriptleri. Sunucu tarafında derlenip çıktı verdiği için istemci tarafından mac adresi gibi bilgileri alman mümkün değil. (Browser bilgileri haricinde, ip vb.)

    Fakat sen localhost veya ağda bir kıstas yapmak istiyorsan ve eğer serverda microsoft sql kullanıyorsan ;

    Arka planda. "select net_address from sysprocesses where spid = @@SPID" bu şekilde mac adresini alabilirsin.
    Classic asp ilede bunu kontrol edip if rs("net_address")<>"xxxx" : Response.End işlemi sonlandırabilirsin.


    Altuncu adlı üyeden alıntı: mesajı görüntüle
    Arkadaşlar hazırlamış olduğum Klasik ASP scripti sadece benim belirlediğim PC localhostunda çalışması için MAC adresi almam gerekiyor. Böylece dosyalar başka bir PC de localhosta atılsa da çalışmayacak. Klasik ASP ile Mac adresini nasıl alırım acil yardım lütfen


    Konu güncel arkadaşlar
    • oktayman
    oktayman bunu beğendi.
    1 kişi bunu beğendi.