默认分类
只是一个默认分类

加密unity3d中dll文件,防止破解

遇到很多坑,慢慢记录,这里使用的centos 6.7,环境搭建路漫漫,一定要根据错误提示来解决问题

  1. 下载源码 https://github.com/Unity-Technologies/mono/tree/unity-5.3

  2. 安装环境 64bit
yum install autoconf

yum install libtool

yumintall –y gcc-c++

yum install bison

yum install –y gettext

yum install glib2-devel.i686 #注意此处安装的是glib开发包

yum installperl #安装perl

yum install git #安装git,后面编译的脚本会用到git去下载

yum install glibc.i686

yum install glibc-devel.i686

yum install libstdc++.i686

yum install zlib-devel.i686

yum install ncurses-devel.i686

yum install libX11-devel.i686

64位linux下使用32位的SDK进行开发必须安装如下的32位的包

http://stream2010.iteye.com/blog/1174242 http://blog.csdn.net/yxq408576080/article/details/47779395 http://csftech.logdown.com/posts/452269-android-unity-encryption

mac下使用jenkins

连接ftp服务器

man ftp 可以看到有这些信息。 NAME ftp -- Internet file transfer program

SYNOPSIS ftp [-46AadefginpRtvV] [-N netrc] [-o output] [-P port] [-q quittime] [-s srcaddr] [-r retry] [-T dir,max[,inc]] [[user@]host [port]] [[user@]host:[path][/]] [file:///path] [ftp://[user[:password]@]host[:port]/path[/][;type=X]] [http://[user[:password]@]host[:port]/path] [...] ftp -u URL file [...] 连接服务器的话基本上就用到上面的讯息了。原本没有看man手册,一直使用 ftp user@xxx.com port 每次都要输入密码。后来还是用了下面这个更加简单的 ftp ftp://User:Passwd@xxx.com:port

浏览文件

命令和Windows、Linux的命令基本相同 ftp> cd Documents ftp> ls
ftp> dir

下载上传文件

put filename - Upload a file to the server

get filename - Download a file from the server

mput filename - Put multiple files on the server

mget filename - Get multiple files on the server

断开连接

bye:中断与服务器的连接。 ftp> bye


大部分的命令如下,可敲入man ftp获得

ls – list the contents of a directory on the FTP server cd – change the working directory on the FTP server pwd – show the current directory on the FTP server get – download files from the FTP server put – upload files to the FTP server account – include a password with your login information bye – terminate an ftp session and close ftp (or use disconnect to simply terminate a session) bell – make a cute sound after each file transfer is done chmod – change permissions delete – your guess is as good as mine (OK, you got me, it’s to delete a file off the server) glob – enable globbing hash – only functional in Amsterdam help – get help lpwd – print the local working directory for transfers mkdir – create folders on the FTP server rmdir – delete folders from the FTP server newer – only get a file if it’s newer (great for scripting synchronizations) nmap – use positional parameters to set filenames passive – use FTP passive mode prompt – allows the use of letters to automate answers to prompts rate – limit the speed of an upload or download

关于ftp,你甚至还可以写脚本进行文件操作,比如

#!/bin/bash
ftp -d krypted.com << ftpEnd
prompt
cd /Library/WebServer/Documents
put “*.html”
put “*.php”
cd /Library/WebServer/Documents
put “*.png”
quit
ftpEnd

#!/bin/bash
ftp -d krypted.com << ftpEnd
prompt
cd /My/Documents
get “*.doc”
quit
ftpEnd

在你的脚本中,可以使用以下几个字符获取一些特定的变量:

%/ – the current working directory of the FTP server
%M – the hostname of the FTP server
%m – the hostname only up to the .
%n – the username used for the FTP server