Skip to content

Instantly share code, notes, and snippets.

@harej
Created March 13, 2020 20:56
Show Gist options
  • Save harej/063a6b88ad793458de8f586474f6c938 to your computer and use it in GitHub Desktop.
Save harej/063a6b88ad793458de8f586474f6c938 to your computer and use it in GitHub Desktop.
jh@Scatter-1 ~ % curl -i http://localhost:63342/Cyberbot_II/IABot/www/setup.php\?_ijt=ek248v577c3ch1l8u1c3mq48gb
HTTP/1.1 200 OK
X-Powered-By: PHP/7.2.28
Set-Cookie: IABotManagementConsole=dbgrl4h62b779fr9luufh5qmm4; expires=Sun, 12-Apr-2020 20:54:31 GMT; Max-Age=2592000; path=/Cyberbot_II/IABot/www
Cache-Control: no-store, must-revalidate
server: PhpStorm 2019.3.3
content-length: 9486
set-cookie: Phpstorm-e21bdce2=b191c1a9-572c-4e8a-b862-7d21cf880eae; Max-Age=315360000; Expires=Mon, 11 Mar 2030 20:54:31 GMT; Path=/; HTTPOnly; SameSite=strict
Set-Cookie: IABotManagementConsole=dbgrl4h62b779fr9luufh5qmm4; expires=Sun, 12-Apr-2020 20:54:31 GMT; Max-Age=2592000; path=/Cyberbot_II/IABot/www
Content-type: text/html; charset=UTF-8
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="https://upload.wikimedia.org/wikipedia/commons/6/6c/IABot_logo.svg">
<title>Configure system globals - IABot Management Interface</title>
<!-- Bootstrap core CSS -->
<link href="static/paper/css/bootstrap.min.css" rel="stylesheet">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="static/ie10-viewport-bug-workaround.css" rel="stylesheet">
<!-- Custom styles for this template -->
<!--<link href="static/theme.css" rel="stylesheet">-->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="static/html5shiv.min.js"></script>
<script src="static/respond.min.js"></script>
<![endif]-->
<!-- Custom bootstrap mods for IABot -->
<link href="static/bootstrap-mods.css" rel="stylesheet">
</head>
<body onload="loadInterface()">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="setup.php">IABot Management Interface</a>
</div>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="page-header">
<h1>Configure system globals</h1>
</div>
<div class="container-fluid">
<div class="row">
<form id="setup1" name="setup1" method="post" action="setup.php">
<input type="hidden" name="setuptype" value="setup1">
<input type="hidden" name="action" value="submitvalues">
<input type="hidden" value="{{csrftoken}}" name="token">
<input type="hidden" value="{{checksum}}" name="checksum">
<ul>
<li><b>Disable bot editing:&nbsp;&nbsp;</b><label class="radio-inline">
<input type="radio" name="disableEdits" id="disableEdits1" value="1" >Yes
</label>
<label class="radio-inline">
<input type="radio" name="disableEdits" id="disableEdits0" value="0" >No
</label>
</li>
<li>
<label class="control-label" for="userAgent"><b>User Agent: </b></label>
<input class="form-control" id="userAgent" name="userAgent" placeholder="Add the bot's User Agent here"
value="">
</li>
<li>
<label class="control-label" for="cidUserAgent"><b>User Agent to pass to external sites: </b></label>
<input class="form-control" id="cidUserAgent" name="cidUserAgent" placeholder="This user agent will be used when pinging external links to test if they are dead or not."
value="">
</li>
<li>
<label class="control-label" for="taskname"><b>The bot's task name: </b></label>
<input class="form-control" id="taskname" name="taskname" placeholder="The task name is what identifies the bot. It's used to exclude the bot in nobots. It usually is 'InternetArchiveBot'."
value="">
</li>
<li><b>Enable logging on an external tool:&nbsp;&nbsp;</b><label class="radio-inline">
<input type="radio" name="enableAPILogging" id="enableAPILogging1" value="1"
>Yes
</label>
<label class="radio-inline">
<input type="radio" name="enableAPILogging" id="enableAPILogging0" value="0"
>No
</label>
<ul>
<li>
<label class="control-label" for="expectedValue"><b>Expected API return value on success: </b></label>
<input class="form-control" id="expectedValue" name="expectedValue"
placeholder="This is the value that the API will return if it successfully logs the bot's edit" value="">
</li>
<li>
<label class="control-label" for="decodeFunction"><b>Function to use to decode the output: </b></label>
<input class="form-control" id="decodeFunction" name="decodeFunction"
placeholder="Commonly used functions are 'unserialize' and 'json_decode'" value="">
</li>
</ul>
</li>
</li>
<li><b>Send failure emails when accessing the Wayback Machine fails:&nbsp;&nbsp;</b><label class="radio-inline">
<input type="radio" name="enableMail" id="enableMail1" value="1"
>Yes
</label>
<label class="radio-inline">
<input type="radio" name="enableMail" id="enableMail0" value="0"
>No
</label>
<ul>
<li>
<label class="control-label" for="to"><b>Who to send it to: </b></label>
<input class="form-control" id="to" name="to"
placeholder="This is a comma-seperated list of email addresses" value="">
</li>
<li>
<label class="control-label" for="from"><b>The email the bot should appear as: </b></label>
<input class="form-control" id="from" name="from"
placeholder="This email address doesn't have to be an active address" value="">
</li>
</ul>
</li>
<li>
<label class="control-label" for="guifrom"><b>Web application email to send from: </b></label>
<input class="form-control" id="guifrom" name="guifrom"
placeholder="IABot Mailer <do_not_reply@iabot.org>" value="">
</li>
<li>
<label class="control-label" for="guidomainroot"><b>Complete root URL of this web application: </b></label>
<input class="form-control" id="guidomainroot" name="guidomainroot"
placeholder="http://localhost/" value="">
</li>
<li><b>Use additional servers to validate if a link is dead:&nbsp;&nbsp;</b><label class="radio-inline">
<input type="radio" name="useCIDservers" id="useCIDservers1" value="1"
>Yes
</label>
<label class="radio-inline">
<input type="radio" name="useCIDservers" id="useCIDservers0" value="0"
>No
</label>
<ul>
<li>
<label class="control-label" for="cidServers"><b>Server addresses to the validation scripts: </b></label>
<input class="form-control" id="cidServers" name="cidServers"
placeholder="This is a space-separated list of URLs to the validation scripts" value="">
</li>
<li>
<label class="control-label" for="cidAuthCode"><b>Authorization code for the container script: </b></label>
<input class="form-control" id="cidAuthCode" name="cidAuthCode"
placeholder="This code is used to allow the request to take place. This helps prevent unauthorized requests from happening or proxy DDoS from happening." value="">
</li>
</ul>
</li>
<li><b>Enable performance profiling:&nbsp;&nbsp;</b><label class="radio-inline">
<input type="radio" name="enableProfiling" id="enableProfiling1" value="1" >Yes
</label>
<label class="radio-inline">
<input type="radio" name="enableProfiling" id="enableProfiling0" value="0"
>No
</label>
</li>
<li>
<label class="control-label" for="defaultWiki"><b>Default wiki to load: </b></label>
<input class="form-control" id="defaultWiki" name="defaultWiki"
placeholder="This is the wiki's identifier code and is used when the wiki to use is not specified."
value="">
</li>
<li><b>Enable automatic false positive reporting:&nbsp;&nbsp;</b><label class="radio-inline">
<input type="radio" name="autoFPReport" id="autoFPReport1" value="1" >Yes
</label>
<label class="radio-inline">
<input type="radio" name="autoFPReport" id="autoFPReport0" value="0" >No
</label>
</li>
<li><b>Disable the interface:&nbsp;&nbsp;</b><label class="radio-inline">
<input type="radio" name="disableInterface" id="disableInterface1" value="1" >Yes
</label>
<label class="radio-inline">
<input type="radio" name="disableInterface" id="disableInterface0" value="0" >No
</label>
</li>
</ul>
<input type="submit" value="Submit" class="btn btn-primary"/>
</form>
</div>
</div>
<hr>
<footer class="row-fluid">
<p class="col-md-6">
<small>IABot Management Interface<br>©2018
<a href="https://en.wikipedia.org/wiki/User:Cyberpower678">Cyberpower678</a>
</small>
</p>
</footer>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="static/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="static/jquery2.min.js"><\/script>')</script>
<script src="static/paper/js/bootstrap.min.js"></script>
<script src="static/docs.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="static/ie10-viewport-bug-workaround.js"></script>
<script src="static/bootstrap-mods.js"></script>
<script src="static/analytics.js"></script>
<script src="static/restrict-tabs.js"></script>
</body>
</html>% jh@Scatter-1 ~ %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment