picoCTF Web1

目录

GET aHEAD

Cookies

Insp3ct0r

Scavenger Hunt   寻宝游戏

 Some Assembly Required 1 

where are the robots

logon

It is my Birthday 

Who are you? 

login

dont-use-client-side

caas

picobrowser

 Client-side-again

Web Gauntlet

Irish-Name-Repo

 Irish-Name-Repo 2

Irish-Name-Repo 3

JaWT Scratchpad

Super Serial 


GET aHEAD

抓包,是将请求方法换成HEAD ,

Cookies

查看cookie里面是 name=-1,思路是name=1,然后没出来,就试,name=18出来了

应该是用burp爆破或者写爬虫脚本来完成更好一些

Insp3ct0r

标题没看懂是啥,但很简单,看源码,在html,css,js里分别有一段flag

Scavenger Hunt   寻宝游戏

前两段flag在html和css源码里,js里有这句话

有点懵,原来是代指robots协议

 apache服务器,也不懂看什么,是要看.htaccess文件,记好笔记

这里要看.DS_Store ,是一个特殊的 MacOS 文件,用于存储有关当前文件夹的信息。

 Some Assembly Required 1 

源码里有个js链接,点进去,混淆的js,看了wp预期解好难,根本看不懂

 还有些做法是这个文件有些搞特殊,是个路径,直解能访问下载

记事本打开,flag出来 

where are the robots

直接robots.txt 很简单

logon

The factory is hiding things from all of its users. Can you login as Joe and find what they've been looking at?

要求以Joe的身份登入

我试了一下,什么用户名密码都告诉你登录成功,但是没有flag,

查看cookie,发现admin=False,改成True

It is my Birthday 

根据提示,上传两个pdf文件,且md5值相同 ,github有,我就直接下载下来上传了

https://github.com/corkami/collisions/blob/master/examples/free/md5-1.pdf

https://github.com/corkami/collisions/blob/master/examples/free/md5-2.pdf

然后就出现php源码了

Who are you? 

抓包

User-Agent:PicoBrowser

得到:I don't trust users visiting from another site.

Referer: http://mercury.picoctf.net:39114/

得到:Sorry, this site only worked in 2018. 

Date: Mon, 11 11 2018 12:12:12

得到:I don't trust users who can be tracked. (跟踪)

 DNT: 1  ("Do Not Track" header)

得到:This website is only for people from Sweden.(瑞典)

X-Forwarded-For: 193.150.233.115

得到:You're in Sweden but you don't speak Swedish?

Accept-Language: sv

得到flag

login

源码里有个index.js链接

打开时js代码,格式化一下,虽然有些看不懂

 但是这里base64解码就是flag

dont-use-client-side

 打开源码就看见这个

 不知道预期怎么写,反正直接组装也提交上了

caas

访问给的链接后是

 通过url来获取信息,第一个就想到rce,没有注入点就用管道符绕过{message}来执行命令

我试了用 & | ; 都可以

/{meeage}&ls;

/{message}&cat falg.txt;  注意这里是falg 妈的坑p 

picobrowser

根据题意,直接把user-agent修改为picobrowser 即可

 Client-side-again

flag藏在混淆后的js代码里面

找了半天wp,我就还是死拼出来的,picoCTF{not_this_again_ef49bf}

Web Gauntlet

Can you beat the filters? Log in as admin

是一个sql注入的题目,五个关卡,每过一关会提示过滤哪些字符

picoCTF 2020 Mini-Competition - Web Gauntlet SQL Injection

第一关:过滤 or

admin' --    (这里好像注释只能用--表示)

没写下去

Irish-Name-Repo

直接sql 万能密码注入

 Irish-Name-Repo 2

中间不能有空格

Irish-Name-Repo 3

抓包,看见debug=0,直接修改为1,发现有sql语句回显

那么在password这里使用万能密码,回显是be,与输入的or不一样 

这里是rot13加密,

 为了实现回显 or ,我们输入be,rot13后就是or

JaWT Scratchpad

jwt ,应该就是需要得到admin的token,先随便注册一个

然后抓包到token

 用在线解析,关于这个秘钥,用jwt爆破工具 爆破出来的,搞了一天我死活用不了

后来去学了hashcat ,倒是可以用,不过暴力9位数还是太难了,密钥直接拿来用了

 

Super Serial 

robots.txt 有提示 ,然后访问index.phps 获得源码

我认为这句话重点

setcookie("login", urlencode(base64_encode(serialize($perm_res))), time() + (86400 * 30), "/");

题目有提示:The flag is at ../flag

题目打不开,先这样放着了

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Table of Contents Preface 1 Chapter 1: Validating and Converting User Input 7 Introduction 7 Performing form-level custom validation 7 Creating a custom validator 12 Composing multiple validators into a single reusable validator 18 Converting string inputs to objects 23 Chapter 2: Getting Down and Dirty with Forms and Form Components 33 Introduction 33 Creating linked selectboxes 34 Composing multiple form components into a single reusable component 39 Preventing multiple form submits 45 Protecting against spam with a CAPTCHA 55 Chapter 3: Making Forms Presentable 61 Introduction 61 Changing form component CSS class on validation errors 62 Using FeedbackPanel to output form component specific messages 65 Streamlining form component presentation using behaviors 67 Chapter 4: Taking your Application Abroad 75 Introduction 75 Storing module resource strings in package properties 76 Retrieving a localized string 80 Feeding dynamic localized strings to components using StringResourceModel 84 Using wicket:message to output localized markup 86 Overriding localized resources on a case by case basis 89 ii Table of Contents Chapter 5: Displaying Data Using DataTable 95 Introduction 95 Sorting 96 Filtering 100 Making cells clickable 106 Making rows selectable with checkboxes 110 Exporting data to CSV 120 Chapter 6: Enhancing your UI with Tabs and Borders 129 Introduction 129 Creating tabs with dynamic titles 130 Making a tabbed panel play nice with forms 136 Creating a client-side JavaScript tabbed panel 140 Using borders to decorate components 143 Creating a collapsible border 148 Chapter 7: Deeper into Ajax 157 Introduction 157 Adding Ajax validation to individual form components 158 Blocking until an Ajax request is complete 162 Providing Ajax feedback automatically 168 Chapter 8: Visualizing Data with Charts 177 Introduction 177 Charting with Open Flash Chart 178 Feeding chart data using a SharedResource 191 Responding to clic
Bring dynamic server-side web content and responsive web design together to build websites that work and display well on any resolution, desktop or mobile. With this practical book, you’ll learn how by combining the ASP.NET MVC server-side language, the Bootstrap front-end framework, and Knockout.js—the JavaScript implementation of the Model-View-ViewModel pattern. Author Jamie Munro introduces these and other related technologies by having you work with sophisticated web forms. At the end of the book, experienced and aspiring web developers alike will learn how to build a complete shopping cart that demonstrates how these technologies interact with each other in a sleek, dynamic, and responsive web application. Build well-organized, easy-to-maintain web applications by letting ASP.NET MVC 5, Bootstrap, and Knockout.js do the heavy lifting Use ASP.NET MVC 5 to build server-side web applications, interact with a database, and dynamically render HTML Create responsive views with Bootstrap that render on a variety of modern devices; you may never code with CSS again Add Knockout.js to enhance responsive web design with snappy client-side interactions driven by your server-side web application Table of Contents Part I. Getting Started Chapter 1. Introduction to MVC Chapter 2. Introduction to Bootstrap Chapter 3. Introduction to Knockout.js Chapter 4. Working with a Database Part II. Working with Data Chapter 5. Listing, Sorting, and Paging Through Tables Chapter 6. Working with Forms Chapter 7. Server-Side ViewModels Chapter 8. Introduction to Web API Part III. Code Architecture Chapter 9. Creating Global Filters Chapter 10. Adding Authentication and Authorization Chapter 11. URL Routing Using Attributes Chapter 12. Fat Model, Skinny Controller Part IV. A Practical Example Chapter 13. Building a Shopping Cart Chapter 14. Building the Data Model Chapter 15. Implementing the Layout Chapter 16. Lists of Books Chapter 17. Adding Items to the Cart Chapter 18. Updating and Deleting Cart Items
Programming Python, 2nd Edition 目录如下,需要下载的朋友不要错过哦~ Programming Python, 2nd Edition By Mark Lutz Publisher : O'Reilly Pub Date : March 2001 ISBN : 0-596-00085-5 Pages : 1256 Copyright Foreword Preface "And Now for Something Completely Different . . . Again" Signs of the Python Times Why This Edition? Major Changes in This Edition Using the Examples and Demos Conventions Used in This Book Where to Look for Updates Contacting O'Reilly Acknowledgments Chapter 1. Introducing Python Section 1.1. "And Now for Something Completely Different" Section 1.2. The Life of Python Section 1.3. The Compulsory Features List Section 1.4. What's Python Good For? Section 1.5. What's Python Not Good For? Part I: System Interfaces Chapter 2. System Tools Section 2.1. "The os.path to Knowledge" Section 2.2. Why Python Here? Section 2.3. System Scripting Overview Section 2.4. The sys Module Section 2.5. The os Module Section 2.6. Script Execution Context Section 2.7. Current Working Directory Section 2.8. Command-Line Arguments Section 2.9. Shell Environment Variables Section 2.10. Standard Streams Section 2.11. File Tools Section 2.12. Directory Tools Chapter 3. Parallel System Tools Section 3.1. "Telling the Monkeys What to Do" Section 3.2. Forking Processes Section 3.3. Threads Section 3.4. Program Exits Section 3.5. Interprocess Communication Section 3.6. Pipes Section 3.7. Signals Section 3.8. Launching Programs on Windows Section 3.9. Other System Tools Chapter 4. Larger System Examples I Section 4.1. "Splits and Joins and Alien Invasions"

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值