ftp -o - https://jcs.org/move_in | sh -
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

anonftpd: macOS no longer requires root to listen to ports <1024

Though it seems to require binding to 0.0.0.0 for this to work

+6 -3
+6 -3
bin/anonftpd
··· 15 15 end 16 16 end 17 17 18 - ip = `ifconfig egress | grep 'inet '`.gsub(/.*inet /, "").gsub(/ .*/, "").strip 18 + int = `route -n get default`.split("\n").select{|l| l.match(/interface:/) }. 19 + first.gsub(/.*: /, "") 20 + ip = `ifconfig #{int} | grep 'inet '`.split("\n")[0].gsub(/.*inet /, ""). 21 + gsub(/ .*/, "").strip 19 22 20 23 server = Ftpd::FtpServer.new(Driver.new) 21 24 server.log = Logger.new(STDOUT) 22 - server.interface = ip 25 + server.interface = "0.0.0.0" 23 26 24 - if Process.uid == 0 27 + if Process.uid == 0 || `uname -s`.strip == "Darwin" 25 28 server.port = 21 26 29 else 27 30 server.port = 2121