Jump to content
UBot Underground

Verify User FTP Login


Recommended Posts

Never mind - I got it.

 

Here it is in case anyone else ever needs to work with similar functionality.

 

 

 

plugin command("FTPCommands.dll""connect to ftp server""FTP""user-doman.com", 21, "user-username""user-password""") {
    wait(3)
    if($plugin function("FTPCommands.dll""$ftp folder exists""public_html")) {
        then {
            alert("true")
        }
        else {
            alert("false")
        }
    }
}

Link to post
Share on other sites

I was wrong.. While it does verify a successful connection, it does not verify an unsuccessful connection, so I still need help if anyone has any ideas.

Link to post
Share on other sites

Ok, this conversation that I have had with myself so far has paid off... I was close before, but a little off.

 

This one works beautifully!

 

set(#ftpcheck$nothing"Global")
if($comparison(1, "=", 1)) {
    then {
        plugin command("FTPCommands.dll""connect to ftp server""FTP""userdomain.com", 21, "user-username""user-password""") {
            wait(3)
            if($plugin function("FTPCommands.dll""$ftp folder exists""public_html")) {
                wait(3)
                then {
                    set(#ftpcheck"ok""Global")
                }
                else {
                }
            }
        }
    }
    else {
    }
}
if($comparison(#ftpcheck"=""ok")) {
    then {
        alert("Successful Connection")
    }
    else {
        alert("Failed Connection")
    }
}

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...