Results 1 to 3 of 3
  1. #1
    netanelbb1's Avatar
    Join Date
    May 2014
    Gender
    male
    Posts
    0
    Reputation
    10
    Thanks
    0

    Is there anyway to bypass/exploit this code?

    Code:
    local APIKey = "<insert api key here>" -- See 
    
    local function HandleSharedPlayer(ply, lenderSteamID)
        print(string.format("FamilySharing: %s | %s has been lent Garry's Mod by %s", 
                ply:Nick(),
                ply:SteamID(),
                lenderSteamID
        ))
    
        if not (ULib and ULib.bans) then return end
    
        if ULib.bans[lenderSteamID] then
            ply:Kick("The account that lent you Garry's Mod is banned on this server")
        end
    end
    
    local function CheckFamilySharing(ply)
        http.Fetch(
            string.format("url of api",
                APIKey,
                ply:SteamID64()
            ),
            
            function(body)
                body = util.JSONToTable(body)
    
                if not body or not body.response or not body.response.lender_steamid then
                    error(string.format("FamilySharing: Invalid Steam API response for %s | %s\n", ply:Nick(), ply:SteamID()))
                end
    
                local lender = body.response.lender_steamid
                if lender ~= "0" then
                    HandleSharedPlayer(ply, util.SteamIDFrom64(lender))
                end
            end,
            
            function(code)
                error(string.format("FamilySharing: Failed API call for %s | %s (Error: %s)\n", ply:Nick(), ply:SteamID(), code))
            end
        )
    end
    
    hook.Add("PlayerAuthed", "CheckFamilySharing", CheckFamilySharing)

  2. #2
    suchisgood's Avatar
    Join Date
    Feb 2014
    Gender
    female
    Posts
    902
    Reputation
    10
    Thanks
    560
    My Mood
    Angelic
    Yes there is create a new account.

  3. #3
    TroubleMakers's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Posts
    65
    Reputation
    10
    Thanks
    27
    My Mood
    Bashful
    Quote Originally Posted by netanelbb1 View Post
    Code:
    local APIKey = "<insert api key here>" -- See 
    
    local function HandleSharedPlayer(ply, lenderSteamID)
        print(string.format("FamilySharing: %s | %s has been lent Garry's Mod by %s", 
                ply:Nick(),
                ply:SteamID(),
                lenderSteamID
        ))
    
        if not (ULib and ULib.bans) then return end
    
        if ULib.bans[lenderSteamID] then
            ply:Kick("The account that lent you Garry's Mod is banned on this server")
        end
    end
    
    local function CheckFamilySharing(ply)
        http.Fetch(
            string.format("url of api",
                APIKey,
                ply:SteamID64()
            ),
            
            function(body)
                body = util.JSONToTable(body)
    
                if not body or not body.response or not body.response.lender_steamid then
                    error(string.format("FamilySharing: Invalid Steam API response for %s | %s\n", ply:Nick(), ply:SteamID()))
                end
    
                local lender = body.response.lender_steamid
                if lender ~= "0" then
                    HandleSharedPlayer(ply, util.SteamIDFrom64(lender))
                end
            end,
            
            function(code)
                error(string.format("FamilySharing: Failed API call for %s | %s (Error: %s)\n", ply:Nick(), ply:SteamID(), code))
            end
        )
    end
    
    hook.Add("PlayerAuthed", "CheckFamilySharing", CheckFamilySharing)
    Just DDoS https://api.steampowered.com and you're fine?

Similar Threads

  1. Is there anyway to bypass this?
    By E%YH$%YUHQ#$%H$%H in forum Combat Arms Help
    Replies: 10
    Last Post: 10-01-2011, 10:26 AM
  2. Is there anyway to Bypass AlterOps thing?
    By XryanXcoreX in forum Call of Duty Black Ops Discussions
    Replies: 2
    Last Post: 08-29-2011, 04:49 AM
  3. Is there anyway I can get this acc back?
    By renewman28 in forum CrossFire Discussions
    Replies: 13
    Last Post: 05-14-2011, 09:16 PM
  4. Is there anyway i can look at the source code?
    By ShoopdaWhoop in forum Combat Arms Coding Help & Discussion
    Replies: 28
    Last Post: 10-05-2010, 10:20 AM
  5. IS there anyway to conver dll into source code format?
    By Osama_Farooq in forum C++/C Programming
    Replies: 10
    Last Post: 08-11-2010, 09:38 PM