This is my first post. So I’ve worked on a script for a while and I’m planning to publish it but the problem is that it connects to an FTP server at some point, and as you probably know FTP credentials are easily captured by a MITM attack or Wireshark (not sure if Wireshark does). So I thought if i can detect data capturing in the user’s network the script would stop. Any idea?.
If there’s another workaround I’m happy to hear it.
I am attempting to pull a list of the directory structure from a public FTP where no username or password is required i.e:
Now I have looked all over the place and have failed find anything to accomplish, and if I found some, and the documentation is rather bleak for example;
it does show something I am looking for, but there is no ftp.au3, and the usage and examples of what i want to do seems to elude me on this and it may not even apply to what I am trying to accomplish?
I want to avoid using things with Internet explorer , and I have done some google searches. However nothing seems to help
the documentation surrounding : _FTP_DirGetCurrent references _FTP_Connect , and then references _FTP_Open , and regardless what I try I cannot get it to pull a list of directorys of files as a list.
Any help is appreciated
Ones(some times twice) a month I get an e-mail with zip file, which has price updates from a supplier.
I have to upload the file to an FTP to get it processed.
When uploading the file, it will get "timestamped" with the time and date at which time the file was uploaded.
Normally this is fine, because I mostly upload the file the same day.
Sometimes it may take 1 or 2 days before I can upload the file.
For historical purpose, I would like to have the file timestamped with the original date.
I have tried using: _FTP_Command ( $hFTPSession, "MFCT YYYYMMDDHHMMSS path")
however this command does not work or change the timestamp as I expected.
Does anyone now a way how I can change the timestamp of a FTP-file?
i need help in deleting files from a server. The function "_FTP_DirDelete" only deletes a directory when its empty. I need to delete a non empty directory. I also can not delete the files in this directory first, because the files are PAG and DIR files in a .DAV directory and FTPEx.au3 doesnt like a directory starting with a ".".
I have used this code for a long time, but for a week or 2 it stopped working?
Connection is ok, the put create the file on server if I delete it on the FTP server, but the file is empty and after 30 secondees the function return 0
I have tested on 2 machines, Filezilla FTP client have no issue to the server.
Firewall is disabled under test.
If $writeFTP = True Then
$Conn=_FTPConnect($Open, $destinationServer, $destinationUsername, $destinationPass)
$Ftpp=_FtpPutFile($Conn, $filePath&$name&".json", "httpdocs/p_calender/" & $name & ".json")
From the Lib:
Func _FTPPutFile($l_FTPSession, $s_LocalFile, $s_RemoteFile, $l_Flags = 0, $l_Context = 0)
Local $ai_FTPPutFile = DllCall('wininet.dll', 'int', 'FtpPutFile', 'long', $l_FTPSession, 'str', $s_LocalFile, 'str', $s_RemoteFile, 'long', $l_Flags, 'long', $l_Context)
If @error OR $ai_FTPPutFile = 0 Then
EndFunc ;==> _FTPPutFile()