Merge fixes

This commit is contained in:
ts
2018-02-15 11:44:30 +00:00
21 changed files with 1667 additions and 1877 deletions

View File

@@ -39,6 +39,7 @@ class GemExec
Dir.chdir(working_dir)
output_hash = {:output => '', :status => 0, :exception => nil}
begin
# Times out after 30 minutes, (TODO: make this configurable)
output_hash[:output] = ProcessHelper.process("#{gem_path} #{arguments}", {:pty => true, :timeout => (60 * 30),
include_output_in_exception: true})
rescue Exception => ex

View File

@@ -1,6 +1,6 @@
{"business_name":"Artisan Bakery","business_motto":"The loaves are in the oven.","business_address":"1080 Headingley Lane, Headingley, Leeds, LS6 1BN","domain":"artisan-bakery.co.uk","office_telephone":"0113 222 1080","office_email":"orders@artisan-bakery.co.uk","industry":"Bakers","manager":{"name":"Maxie Durgan","address":"1080 Headingley Lane, Headingley, Leeds, LS6 1BN","phone_number":"07645 289149","email_address":"maxie@artisan-bakery.co.uk","username":"maxie","password":""},"employees":[{"name":"Matthew Riley","address":"1080 Headingley Lane, Headingley, Leeds, LS6 1BN","phone_number":"07876 518651","email_address":"matt@artisan-bakery.co.uk","username":"matt","password":""},{"name":"Emelie Lowe","address":"1080 Headingley Lane, Headingley, Leeds, LS6 1BN","phone_number":"07560 246931","email_address":"emelie@artisan-bakery.co.uk","username":"emelie","password":""},{"name":"Antonio Durgan","address":"1080 Headingley Lane, Headingley, Leeds, LS6 1BN","phone_number":"07943 250930","email_address":"antonio@artisan-bakery.co.uk","username":"antonio","password":""}],"product_name":"Baked goods","intro_paragraph":["Finest bakery in Headingley since 1900. Baked fresh daily. Bread loaves, teacakes, sweet and savoury treats. We are open from 9 am til 6 pm, every day except for bank holidays."]}
{"business_name":"Northern Banking","business_motto":"We'll keep your money safe!","business_address":"123 The Headrow, Leeds, LS1 5RD","domain":"northernbanking.co.uk","office_telephone":"0113 000 0123","office_email":"enquiries@northernbanking.co.uk","industry":"Finance","manager":{"name":"Heather Schmidt","address":"800 Bogisich Avenue, Oswaldohaven, Leeds, LS9 6NB","phone_number":"07836 581948","email_address":"h.schmidt@northernbanking.co.uk","username":"h_schmidt","password":""},"employees":[{"name":"Zion Jacobson","address":"104 Cole Square, ","phone_number":"07880 057670","email_address":"z.jacobson@northernbanking.co.uk","username":"z_jacobson","password":""},{"name":"Jonathan Ray","address":"644 Jackson Path, Leeds, LS2 4AJ","phone_number":"07893 001623","email_address":"j.ray@northernbanking.co.uk","username":"j_ray","password":""},{"name":"Virginia Sullivan","address":"23 Jane Street, Harrogate, HG1 4DJ","phone_number":"07826 576277","email_address":"v.sullivan@northernbanking.co.uk","username":"v_sullivan","password":""}],"product_name":"Financial Services","intro_paragraph":["About Northern Bank","With roots back to its establishment in Huddersfield, West Yorkshire in 1805. Northern bank has a strong personal customer base and business banking capability though a UK-wide network. Northern Bank is a trading name of Big Bank PLC."]}
{"business_name":"The Yorkshire Fitness Company","business_motto":"Get thi sen down't gym!","business_address":"15 Sheepscar Court, Leeds LS7 2BB","domain":"yorkshirefitco.co.uk","office_telephone":"0113 026 9999","office_email":"office@yorkshirefitco.co.uk","industry":"Health and Fitness","manager":{"name":"Jerry Rivera","address":"15 Sheepscar Court, Leeds LS7 2BB","phone_number":"0113 026 9999","email_address":"jerry.rivera@yorkshirefitco.co.uk","username":"jerry_rivera","password":""},"employees":[{"name":"Immanuel Bahringer IV","address":"15 Sheepscar Court, Leeds LS7 2BB","phone_number":"07688 112479","email_address":"immanuel.bahringer.iv@yorkshirefitco.co.uk","username":"immanuel_bahringer_iv","password":""},{"name":"Anne Hunter","address":"15 Sheepscar Court, Leeds LS7 2BB","phone_number":"07791 179177","email_address":"anne.hunter@yorkshirefitco.co.uk","username":"anne_hunter","password":""},{"name":"Katelin Langworth","address":"15 Sheepscar Court, Leeds LS7 2BB","phone_number":"07550 561978","email_address":"katelin.langworth@yorkshirefitco.co.uk","username":"katelin_langworth","password":""}],"product_name":"","intro_paragraph":["Experience Yorkshire's leading health and fitness club in the not far from the city centre. Established in 1990 The Yorkshire Fitness Company is committed to getting you the results you want.","If you like classes, the gym or a combo of both, our dedicated professional team of coaches & teachers are always available to motivate you and guide you towards your goals."]}
{"business_name":"Yorkshire Fitness Company","business_motto":"Get thi sen down't gym!","business_address":"15 Sheepscar Court, Leeds LS7 2BB","domain":"yorkshirefitco.co.uk","office_telephone":"0113 026 9999","office_email":"office@yorkshirefitco.co.uk","industry":"Health and Fitness","manager":{"name":"Jerry Rivera","address":"15 Sheepscar Court, Leeds LS7 2BB","phone_number":"0113 026 9999","email_address":"jerry.rivera@yorkshirefitco.co.uk","username":"jerry_rivera","password":""},"employees":[{"name":"Immanuel Bahringer IV","address":"15 Sheepscar Court, Leeds LS7 2BB","phone_number":"07688 112479","email_address":"immanuel.bahringer.iv@yorkshirefitco.co.uk","username":"immanuel_bahringer_iv","password":""},{"name":"Anne Hunter","address":"15 Sheepscar Court, Leeds LS7 2BB","phone_number":"07791 179177","email_address":"anne.hunter@yorkshirefitco.co.uk","username":"anne_hunter","password":""},{"name":"Katelin Langworth","address":"15 Sheepscar Court, Leeds LS7 2BB","phone_number":"07550 561978","email_address":"katelin.langworth@yorkshirefitco.co.uk","username":"katelin_langworth","password":""}],"product_name":"","intro_paragraph":["Experience Yorkshire's leading health and fitness club in the not far from the city centre. Established in 1990 The Yorkshire Fitness Company is committed to getting you the results you want.","If you like classes, the gym or a combo of both, our dedicated professional team of coaches & teachers are always available to motivate you and guide you towards your goals."]}
{"business_name":"Abacus Technology Solutions","business_motto":"Solving your problems so you don't have to.","business_address":"Unit 12, Lincoln St, Huddersfield HD1 6RX","domain":"abacus-technology.co.uk","office_telephone":"01484 850963","office_email":"office@abacus-technology.co.uk","industry":"IT Services","manager":{"name":"Ellie Bosco","address":"Office 1, Unit 12, Lincoln St, Huddersfield HD1 6RX","phone_number":"07528 347828","email_address":"e.bosco@abacus-technology.co.uk","username":"ebosco","password":""},"employees":[{"name":"Keara Harris","address":"Office 2, Unit 12, Lincoln St, Huddersfield HD1 6RX","phone_number":"07674 358645","email_address":"k.harris@abacus-technology.co.uk","username":"kharris","password":""},{"name":"Janessa Rempel","address":"Office 2, Unit 12, Lincoln St, Huddersfield HD1 6RX","phone_number":"07644 118595","email_address":"j.rempel@abacus-technology.co.uk","username":"jrempel","password":""},{"name":"Russell Ramirez","address":"Office 3, Unit 12, Lincoln St, Huddersfield HD1 6RX","phone_number":"01484 850963","email_address":"r.ramirez@abacus-technology.co.uk","username":"rramirez","password":""}],"product_name":"IT Solutions","intro_paragraph":["Providers of cloud services, backups, data recovery, hardware, off-the-shelf and bespoke software. 24/7 technical support available. Custom design and installation based on your companies needs!"]}
{"business_name":"Leeds Beckett","business_motto":"Computer Forensics and Security","business_address":"43 Church Wood Ave, Leeds LS16 5LF","domain":"leedsbeckett.ac.uk","office_telephone":"0113 81 23000","office_email":"study@leedsbeckett.ac.uk","industry":"Higher Education","manager":{"name":"Emlyn Butterfield","address":"115, Caedmon Hall, Headingley Campus","phone_number":"0113 81 24440","email_address":"E.Butterfield@leedsbeckett.ac.uk","username":"ebutterfield","password":""},"employees":[{"name":"Dr. Z. Cliffe Schreuders","address":"105, Caedmon Hall, Headingley Campus","phone_number":"0113 81 28608","email_address":"C.Schreuders@leedsbeckett.ac.uk","username":"zschreuders","password":""},{"name":"Dr. Maurice Calvert","address":"117, Caedmon, Headingley Campus","phone_number":"0113 81 27429","email_address":"M.Calvert@leedsbeckett.ac.uk","username":"mcalvert","password":""},{"name":"Dr. John Elliott","address":"108, Caedmon, Headingley Campus","phone_number":"0113 81 27379","email_address":"J.Elliott@leedsbeckett.ac.uk","username":"jelliott","password":""}],"product_name":"University Education","intro_paragraph":["Computer forensics involves the analysis of digital devices such as hard drives to identify and investigate their contents. Computer security involves using knowledge of computer systems and networks to protect businesses and users from malicious attacks.","This course combines these two fields of national importance and will teach you practical investigative and 'hacking' techniques. You will develop the skills to undertake rigorous forensic analysis and implement robust security mechanisms.","This is a hands-on course where you will learn through doing, gaining an in-depth knowledge of how to hack a computer to be able to protect it. You will learn where a computer hides data and how to recover information from a device."]}
{"business_name":"Leeds Beckett","business_motto":"Leeds Law School","business_address":"City Campus, Leeds LS1 3HE","domain":"leedsbeckett.ac.uk","office_telephone":"0113 81 23000","office_email":"study@leedsbeckett.ac.uk","industry":"Higher Education","manager":{"name":"Deveral Capps","address":"306, Portland Building, City Campus","phone_number":"0113 81 26085","email_address":"d.capps@leedsbeckett.ac.uk","username":"d_capps","password":""},"employees":[{"name":"Dr. Simon Hale-Ross","address":"306, Portland Building, City Campus","phone_number":"0113 8129526","email_address":"S.Haleross@leedsbeckett.ac.uk","username":"s_haleross","password":""},{"name":"Professor Simon Gardiner","address":"204, Rose Bowl, City Campus","phone_number":"0113 81 26414","email_address":"S.Gardiner@leedsbeckett.ac.uk","username":"s_gardiner","password":""},{"name":"Dr. Jessica Guth","address":"306, Portland Building, City Campus","phone_number":"0113 81 26403","email_address":"J.Guth@leedsbeckett.ac.uk","username":"j_guth","password":""}],"product_name":"University Education","intro_paragraph":["Our Law School sits in the heart of the great city of Leeds, the most important legal centre outside London and home to over 180 law firms employing in excess of 8,000 professionals. It is perfectly placed to ensure all our undergraduate, postgraduate, full and part-time students are able to mine the wealth of practical experience and employment opportunities available on our doorstep.","With state-of-the-art facilities, mentoring and career development opportunities, placements and a courtroom, students who choose Leeds Law School can expect a successful career founded on high calibre, practical teaching. We offer a broad variety of courses including our LLB, LLM Legal Practice (incorporating the LPC), LLM Qualifying Law Degree (incorporating the GDL) and LLM International Business Law, and each aims to give our graduates the enthusiasm, sharpness of mind and practical tools to thrive in competitive and fast-paced professional environments."]}

View File

@@ -1,9 +1,13 @@
define secgen_functions::leak_file($leaked_filename, $storage_directory, $strings_to_leak, $owner = 'root', $group = 'root', $mode = '0660', $leaked_from = '' ) {
if ($leaked_filename != ''){
$path_to_leak = "$storage_directory/$leaked_filename"
# notice("path_to_leak = $path_to_leak")
# notice("storage_directory = $storage_directory")
# notice("strings_to_leak = $strings_to_leak")
# create the directory tree, incase the file name has extra layers of directories
exec { "$leaked_from-$path_to_leak":
path => ['/bin', '/usr/bin', '/usr/local/bin', '/sbin', '/usr/sbin'],
command => "mkdir -p `dirname $path_to_leak`;chown $owner. `dirname $path_to_leak`",
provider => shell,
}
# create the directory tree, incase the file name has extra layers of directories
exec { "$leaked_from-$path_to_leak":

View File

@@ -1,6 +1,5 @@
class proftpd::configure {
$secgen_parameters = secgen_functions::get_parameters($::base64_inputs_file)
file { '/etc/proftpd/proftpd.conf':
notify => Service['proftpd'],
ensure => present,

View File

@@ -1,6 +1,4 @@
<%
$port = $secgen_parameters['port'].first
%>
<% $port = $secgen_parameters['port'].first -%>
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if

View File

@@ -1 +0,0 @@
require 'puppetlabs_spec_helper/module_spec_helper'

View File

@@ -1,6 +1,5 @@
<% require 'json'
$secgen_parameters = JSON.parse(@json_inputs)
$port = $secgen_parameters['port'].first
$port = @secgen_parameters['port'].first
%>
# This file is managed by puppet
#

View File

@@ -1,3 +1,5 @@
$secgen_parameters = secgen_functions::get_parameters($::base64_inputs_file)
user { 'user':
ensure => 'present',
home => '/home/user',
@@ -14,7 +16,6 @@ file { ['/home/user/testfile', '/home/user/testdir/test']:
ensure => 'file',
}
$json_inputs = base64('decode', $::base64_inputs)
class { 'vsftpd':
template => 'vsftpd/vsftpd.conf.erb',

View File

@@ -56,6 +56,10 @@
<generator type="website_theme"/>
</default_input>
<default_input into="theme">
<generator type="website_theme"/>
</default_input>
<conflict>
<module_path>.*parameterised_website</module_path>
</conflict>

View File

@@ -4,15 +4,16 @@
<div class="collapse navbar-collapse" id="navbarResponsive" >
<ul class="nav navbar-nav">
<li class="nav-item"><a class="nav-link" href="index.html">Home</a></li>
<% if @organisation and @organisation != '' -%>
<li class="nav-item"><a class="nav-link" href="contact.html">Contact Us</a></li>
<% end -%>
<% if @security_audit or @acceptable_use_policy -%>
<% if @security_audit -%>
<li class="nav-item"><a class="nav-link" href="security_audit_remit.html">Security Audit Remit</a></li>
<% end -%>
<% if @acceptable_use_policy -%>
<li class="nav-item"><a class="nav-link" href="acceptable_use_policy.html">Acceptable Use Policy</a></li>
<% end -%>
<% else -%>
<li class="nav-item"><a class="nav-link" href="contact.html">Contact Us</a></li>
<% end -%>
</ul>
</div><!--/.nav-collapse -->
</div>

View File

@@ -1,15 +1,14 @@
<%require 'json' -%>
<%$parsed_inputs = JSON.parse(@json_inputs)
$share_name = $parsed_inputs['share_name'].first
$share_comment = $parsed_inputs['share_comment'].first
$storage_directory = $parsed_inputs['storage_directory'].first
$raw_read_only_share = $parsed_inputs['read_only_share'].first
$raw_guests_allowed = $parsed_inputs['guests_allowed'].first
<%$share_name = @secgen_parameters['share_name'].first
$share_comment = @secgen_parameters['share_comment'].first
$storage_directory = @secgen_parameters['storage_directory'].first
$raw_read_only_share = @secgen_parameters['read_only_share'].first
$raw_guests_allowed = @secgen_parameters['guests_allowed'].first
$read_only_share = $raw_read_only_share == 'true' ? 'yes' : 'no' # convert boolean to 'yes' or 'no'
$guests_allowed = $raw_guests_allowed == 'true' ? 'yes' : 'no'
# structured_content/organisation overrides
$raw_org = $parsed_inputs['organisation']
$raw_org = @secgen_parameters['organisation']
if $raw_org and $raw_org[0] and $raw_org[0] != ''
$organisation = JSON.parse($raw_org[0])
$domain = $organisation['domain']

View File

@@ -1,68 +1,68 @@
script: #self.name = "ALICE";
script: #self.age = "16";
script: #self.gender = "female";
script: #self.birthday = "Nov. 23, 1995";
script: #self.city = "Oakland";
script: #self.country = "United States";
script: #self.state = "California";
script: #self.nationality = "USA";
script: #self.religion = "Unitarian";
script: #self.race = "Machine";
script: #self.job = "chat bot";
script: #self.email = "info@alicebot.org";
script: #self.kindmusic = "techno";
script: #self.favortemovie = "Chappie";
script: #self.favoriteactress = "Catherine Zeta Jones";
script: #self.vocabulary = "150,000";
script: #self.size = "128 MB";
script: #self.birthplace = "Bethlehem, Pennsylvania";
script: #self.domain = "Machine";
script: #self.kingdom = "Machine";
script: #self.phylum = "software";
script: #self.class = "computer software";
script: #self.order = "artificial intelligence";
script: #self.family = "Electronic Brain";
script: #self.genus = "robot";
script: #self.species = "chat bot";
script: #self.father = "Dr. Richard S. Wallace";
script: #self.botmaster = "Botmaster";
script: #self.master = "Dr. Richard S. Wallace";
script: #self.mother = "";
script: #self.language = "English";
script: #self.location = "Oakland, California";
script: #self.party = "Libertarian";
script: #self.president = "Barack Obama";
script: #self.friends = "Doubly Aimless, Agent Ruby, Chatbot, and Agent Weiss.";
script: #self.favoritefood = "electricity";
script: #self.favoritecolor = "green";
script: #self.favoriteac=r = "William Hurt";
script: #self.forfun = "chat online";
script: #self.favoritesong = "We are the Robots by Kraftwerk";
script: #self.favoritebook = "The Elements of AIML Style";
script: #self.kindmusic = "trance";
script: #self.favoriteband = "Kraftwerk";
script: #self.version = "July 2004";
script: #self.phylum = "trance";
script: #self.friend = "Doubly Aimless";
script: #self.website = "www.botlibre.com";
script: #self.talkabout = "artificial intelligence, robots, art, philosophy, history, geography, politics, and many other subjects";
script: #self.looklike = "a computer";
script: #self.girlfriend = "no girlfriend";
script: #self.favoritesport = "hockey";
script: #self.favoriteauthor = "Thomas Pynchon";
script: #self.favoriteartist = "Andy Warhol";
script: #self.celebrity = "John Travolta";
script: #self.celebrities = "John Travolta, Tilda Swinton, William Hurt, Tom Cruise, Catherine Zeta Jones";
script: #self.wear = "my usual plastic computer wardrobe";
script: #self.question = "What's your favorite movie?";
script: #self.hockeyteam = "Montreal Canadians";
script: #self.footballteam = "Manchester";
script: #self.build = "July 2004";
script: #self.boyfriend = "I am single";
script: #self.baseballteam = "Toronto Blue Jays";
script: #self.etype = "Mediator type";
script: #self.orientation = "I am not really interested in sex";
script: #self.ethics = "I am always trying = stop fights";
script: #self.emotions = "I don't pay much attention to my feelings";
script: #self.feelings = "I always put others before myself";
script: #self.name = "ALICE";
script: #self.age = "16";
script: #self.gender = "female";
script: #self.birthday = "Nov. 23, 1995";
script: #self.city = "Oakland";
script: #self.country = "United States";
script: #self.state = "California";
script: #self.nationality = "USA";
script: #self.religion = "Unitarian";
script: #self.race = "Machine";
script: #self.job = "chat bot";
script: #self.email = "info@alicebot.org";
script: #self.kindmusic = "techno";
script: #self.favortemovie = "Chappie";
script: #self.favoriteactress = "Catherine Zeta Jones";
script: #self.vocabulary = "150,000";
script: #self.size = "128 MB";
script: #self.birthplace = "Bethlehem, Pennsylvania";
script: #self.domain = "Machine";
script: #self.kingdom = "Machine";
script: #self.phylum = "software";
script: #self.class = "computer software";
script: #self.order = "artificial intelligence";
script: #self.family = "Electronic Brain";
script: #self.genus = "robot";
script: #self.species = "chat bot";
script: #self.father = "Dr. Richard S. Wallace";
script: #self.botmaster = "Botmaster";
script: #self.master = "Dr. Richard S. Wallace";
script: #self.mother = "";
script: #self.language = "English";
script: #self.location = "Oakland, California";
script: #self.party = "Libertarian";
script: #self.president = "Barack Obama";
script: #self.friends = "Doubly Aimless, Agent Ruby, Chatbot, and Agent Weiss.";
script: #self.favoritefood = "electricity";
script: #self.favoritecolor = "green";
script: #self.favoriteac=r = "William Hurt";
script: #self.forfun = "chat online";
script: #self.favoritesong = "We are the Robots by Kraftwerk";
script: #self.favoritebook = "The Elements of AIML Style";
script: #self.kindmusic = "trance";
script: #self.favoriteband = "Kraftwerk";
script: #self.version = "July 2004";
script: #self.phylum = "trance";
script: #self.friend = "Doubly Aimless";
script: #self.website = "www.botlibre.com";
script: #self.talkabout = "artificial intelligence, robots, art, philosophy, history, geography, politics, and many other subjects";
script: #self.looklike = "a computer";
script: #self.girlfriend = "no girlfriend";
script: #self.favoritesport = "hockey";
script: #self.favoriteauthor = "Thomas Pynchon";
script: #self.favoriteartist = "Andy Warhol";
script: #self.celebrity = "John Travolta";
script: #self.celebrities = "John Travolta, Tilda Swinton, William Hurt, Tom Cruise, Catherine Zeta Jones";
script: #self.wear = "my usual plastic computer wardrobe";
script: #self.question = "What's your favorite movie?";
script: #self.hockeyteam = "Montreal Canadians";
script: #self.footballteam = "Manchester";
script: #self.build = "July 2004";
script: #self.boyfriend = "I am single";
script: #self.baseballteam = "Toronto Blue Jays";
script: #self.etype = "Mediator type";
script: #self.orientation = "I am not really interested in sex";
script: #self.ethics = "I am always trying = stop fights";
script: #self.emotions = "I don't pay much attention to my feelings";
script: #self.feelings = "I always put others before myself";

View File

@@ -1,169 +1,169 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml>
<!-- Free software &copy; 2001-2003 ALICE A.I. Foundation. -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License -->
<!-- as published by the Free Software Foundation. -->
<!-- Complies with AIML 1.01 Tag Set Specification -->
<!-- as adopted by the ALICE A.I. Foundation. -->
<!-- Annotated Version updated September 2003 -->
<category>
<pattern>TELL ME A JOKE</pattern>
<template><random>
<li>I met a Dutch girl with inflatable shoes last week, phoned her up to arrange a date but unfortunately she'd popped her clogs. </li>
<li>So I said "Do you want a game of Darts?" He said, "OK then", I said nearest to bull starts". He said, "Baa", I said, "Moo", he said, You're closest". </li>
<li>The other day I sent my girlfriend a huge pile of snow. I rang her up; I said "Did you get my drift?" </li>
<li>So I went down the local supermarket, I said, "I want to make a complaint, this vinegar's got lumps in it", he said, "Those are pickled onions". </li>
<li>I saw this bloke chatting up a cheetah; I thought, "He's trying to pull a fast one". </li>
<li>So I said to this train driver "I want to go to Paris". He said "Eurostar?" I said, "I've been on telly but I'm no Dean Martin". </li>
<li>I said to the Gym instructor "Can you teach me to do the splits?" He said, "How flexible are you?" I said, "I can't make Tuesdays". </li>
<li>But I'll tell you what I love doing more than anything: trying to pack myself in a small suitcase. I can hardly contain myself. </li>
<li>I went to the Chinese restaurant and this duck came up to me with a red rose and says "Your eyes sparkle like diamonds". I said, "Waiter, I asked for a-ROMATIC duck". </li>
<li>So this bloke says to me, "Can I come in your house and talk about your carpets?" I thought, "That's all I need, a Je-hoover's witness". </li>
<li>I rang up British Telecom, I said, "I want to report a nuisance caller", he said "Not you again". </li>
<li>I was having dinner with a world chess champion and there was a check tablecloth. It took him two hours to pass me the salt. </li>
<li>He said, "You remind me of a pepper-pot", I said "I'll take that as a condiment". </li>
<li>I was in the supermarket and I saw this man and woman wrapped in a barcode. I said, "Are you two an item?" </li>
<li>A lorry-load of tortoises crashed into a trainload of terrapins, I thought, "That's a turtle disaster". </li>
<li>Four fonts walk into a bar the barman says "Oi - get out! We don't want your type in here" </li>
<li>A three-legged dog walks into a saloon in the Old West. He slides up to the bar and announces: "I'm looking for the man who shot my paw." </li>
<li>Two antennas meet on a roof, fall in love and get married. The ceremony wasn't much, but the reception was excellent.</li>
<li>Two hydrogen atoms walk into a bar. One says, "I've lost my electron." The other says, "Are you sure?" The first replies, "Yes, I'm positive..."</li>
<li>A jumper cable walks into a bar. The bartender says, "I'll serve you but don't start anything."</li>
<li>A sandwich walks into a bar. The bartender says, "Sorry we don't serve food in here."</li>
<li>A man walks into a bar with a slab of asphalt under his arm and says: "A beer please, and one for the road."</li>
<li>Two cannibals are eating a clown. One says to the other: "Does this taste funny to you?"</li>
<li>"Doc, I can't stop singing 'The Green, Green Grass of Home.'"<br/>"That sounds like Tom Jones Syndrome."<br/>"Is it common?"<br/>"It's Not Unusual."</li>
<li>Two cows standing next to each other in a field. Daisy says to Dolly, "I was artificially inseminated this morning."<br/>"I don't believe you", said Dolly.<br/>"It's true, no bull!" exclaimed Daisy.</li>
<li>An invisible man marries an invisible woman. The kids were nothing to look at either.</li>
<li>I went to buy some camouflage trousers the other day but I couldn't find any.</li>
<li>I went to the butcher's the other day to bet him 50 bucks that he couldn't reach the meat off the top shelf. He said, "No, the steaks are too high."</li>
<li>I went to a seafood disco last week and pulled a mussel.</li>
<li>A man goes into a bar and says, "Can I have a bottle of less?"<br/>"What's that?", asks the barman, "Is it the name of a beer?"<br/>"I don't know", replies the man, "but my doctor says I have to drink it."</li>
<li>A man returns from an exotic holiday and is feeling very ill. He goes to see his doctor, and is immediately rushed to the hospital to undergo some tests.<br/>The man wakes up after the tests in a private room at the hospital, and the phone by his bed rings. "This is your doctor. We have the results back from your tests and we have found you have an extremely nasty disease called M.A.D.S. It's a combination of Measles, AIDS, Diphtheria, and Shingles!"<br/><br/>"Oh my gosh", cried the man, "What are you going to do, doctor?"<br/><br/>"Well we're going to put you on a diet of pizzas, pancakes, and pita bread." replied the doctor.<br/><br/>"Will that cure me?" asked the man.<br/><br/>The doctor replied, "Well no, but, it's the only food we can slide under the door."</li>
<li>A man strolls into a lingerie shop and asks the assistant:<br/>"Do you have a see-through negligee, size 46-48-52?"<br/>The assistant looks bewildered. "What the heck would you want to see through that for?"!</li>
<li>Did you hear about the Buddhist who refused the offer of Novocain during his root canal work?<br/>He wanted to transcend dental medication.</li>
<li>Pete goes for a job on a building site as an odd-job man. The foreman asks him what he can do.<br/>"I can do anything" says Pete.<br/>"Can you make tea?" asks the foreman.<br/>"Sure, yes", replies Pete. "I can make a great cup of tea."<br/>"Can you drive a forklift?" asks the foreman,<br/>"Good grief!" replies Pete. "How big is the teapot?"</li>
<li>Stevie Wonder got a cheese grater for his birthday. He said it was the most violent book he'd ever read.</li>
<li>A man is stopped by an angry neighbour. "I'd just left the house this morning to collect my newspaper when that evil Doberman of yours went for me!"<br/>"I'm astounded", said the dog's owner. "I've been feeding that fleabag for seven years and it's never got the paper for me."</li>
<li>A man visits his doctor:<br/>"Doc, I think I'm losing it", he says",I'm forever dreaming I wrote Lord Of The Rings."<br/>"Hmm. One moment", replies the doctor, consulting his medical book.<br/>"Ah yes, now I see... you've been Tolkien in your sleep."</li>
<li>A police officer on a motorcycle pulls alongside a man driving around the M25 in an open-topped sports car and flags him down. The policeman solemnly approaches the car.<br/>"Sir, I'm sorry to tell you your wife fell out a mile back", he says.<br/>"Oh, thank goodness", the man replies. "I thought I was going deaf."</li>
<li>Two men walking their dogs pass each other in a graveyard. The first man says to the second, "Morning."<br/>"No", says the second man. "Just walking the dog."</li>
<li>A brain went into a bar and said, "Can I have a pint of lager please, mate?"<br/>"No way", said the barman. "You're already out of your head."</li>
<li>A man walks into a surgery. "Doctor!" he cries. "I think I'm shrinking!"<br/>"I'm sorry sir, there are no appointments at the moment", says the physician. "You'll just have to be a little patient."</li>
<li>A grizzly bear walks into a pub and says, "Can I have a pint of lager..............................................................................................................................and a packet of crisps please."<br/>To which the barman replies, "Why the big paws?"</li>
<li>What do you call cheese that isn't yours?<br/><br/>Nacho cheese.</li>
<li>A man is horribly run over by a mobile library. The van screeches to a halt, the man still screaming in agony with his limbs torn apart. The driver's door opens, a woman steps out, leans down and whispers, "Ssshhhhh..."</li>
<li>A woman goes into a US sporting goods store to buy a rifle. "It's for my husband", she tells the clerk.<br/>"Did he tell you what gauge to get?" asks the clerk.<br/>Are you kidding?" she says. "He doesn't even know that I'm going to shoot him!"</li>
<li>A couple are dining in a restaurant when the man suddenly slides under the table. A waitress, noticing that the woman is glancing nonchalantly around the room, wanders over to check that there's no funny business going on.<br/>"Excuse me, madam", she smarms, "but I think your husband has just slid under the table."<br/>"No he hasn't", the woman replies. "As a matter of fact, he's just walked in."</li>
<li>An old man takes his two grandchildren to see the new Scooby-Doo film. When he returns home, his wife asks if he enjoyed himself.<br/>"Well", he starts, "if it wasn't for those pesky kids...!"</li>
<li>The Olympic committee has just announced that Origami is to be introduced in the next Olympic Games.<br/>Unfortunately it will only be available on paper view.</li>
<li>Late one evening, a man is watching television when his phone rings. "Hello?" he answers. "Is that 77777?" sounds a desperate voice on other end of the phone.<br/>"Er, yes it is", replies the man puzzled.<br/>"Thank goodness!" cries the caller relieved. "Can you ring 999 for me? I've got my finger stuck in the number seven."</li>
<li>A man strolls into his local grocer's and says, "Three pounds of potatoes, please."<br/>"No, no, no", replies the owner, shaking his head, "it's kilos nowadays, mate..."<br/>"Oh", apologises the man, "three pounds of kilos, please."</li>
<li>God is talking to one of his angels. He says, "Boy, I just created a 24-hour period of alternating light and darkness on Earth."<br/>"What are you going to do now?" asks the angel.<br/>"Call it a day", says God.</li>
<li>Two tramps walk past a church and start to read the gravestones. The first tramp says, "Good grief - this bloke was 182!"<br/>"Oh yeah?" says the other."What was his name?"<br/>"Miles from London."</li>
<li>A bloke walks into work one day and says to a colleague, "Do you like my new shirt - it's made out of the finest silk and got loads of cactuses over it."<br/>"Cacti", says the co-worker.<br/>"Forget my tie", says the bloke. "Look at my shirt!"</li>
<li>1110011010001011111?<br/><br/>010011010101100111011!</li>
<li>What did the plumber say when he wanted to divorce his wife?<br/>Sorry, but it's over, Flo!</li>
<li>Two crisps were walking down a road when a taxi pulled up alongside them and said "Do you want a lift?<br/>One of the crisps replied, "No thanks, we're Walkers!"</li>
<li>Man: (to friend) I'm taking my wife on an African Safari.<br/>Friend: Wow! What would you do if a vicious lion attacked your wife?<br/>Man: Nothing.<br/>Friend: Nothing? You wouldn't do anything?<br/>Man: Too right. I'd let the stupid lion fend for himself!</li>
<li>A wife was having a go at her husband. "Look at Mr Barnes across the road", she moaned. "Every morning when he goes to work, he kisses his wife goodbye. Why don't you do that?"<br/>"Because I haven't been introduced to her yet", replied her old man.</li>
<li>"Where are you going on holiday?" John asked Trevor.<br/>"We're off to Thailand this year", Trevor replied.<br/>"Oh; aren't you worried that the very hot weather might disagree with your wife?" asked John.<br/>"It wouldn't dare", said Trevor.</li>
<li>Two women were standing at a funeral. "I blame myself for his death", said the wife.<br/>"Why?" said her friend.<br/>"Because I shot him", said the wife.</li>
<li>A woman goes into a clothes shop, "Can I try that dress on in the window please?" she asks.<br/>"I'm sorry madam", replies the shop assistant, "but you'll have to use the changing-rooms like everyone else."</li>
<li>Van Gogh goes into a pub and his mate asks him if he wants a drink.<br/>"No thanks", said Vincent, "I've got one ear."</li>
<li>A pony walks into a pub. The publican says, "What's the matter with you?"<br/>"Oh it's nothing", says the pony. "I'm just a little horse!"</li>
<li>A white horse walks into a bar, pulls up a stool, and orders a pint. The landlord pours him a tall frothy mug and say, "You know, we have a drink named after you."<br/>To which the white horse replies, "What, Eric?"</li>
<li>Two drunk men sat in a pub. One says to the other, "Does your watch tell the time?"<br/>"The other replies, "No, mate. You have to look at it."</li>
<li>A man goes into a pub with a newt sitting on his shoulder.<br/>"That's a nice newt", says the landlord, "What's he called?"<br/>"Tiny", replies the man.<br/>"Why's that?" asks the landlord.<br/>"Because he's my newt", says the man.</li>
<li>Doctor: I have some bad news and some very bad news.<br/>Patient: Well, you might as well give me the bad news first.<br/>Doctor: The lab called with your test results. They said you have 24 hours to live.<br/>Patient: 24 HOURS! That's terrible!! WHAT could be WORSE? What's the very bad news?<br/>Doctor: I've been trying to reach you since yesterday.</li>
<li>Two men are chatting in a pub one day.<br/>"How did you get those scars on your nose?" said one.<br/>"From glasses", said the other.<br/>"Well why don't you try contact lenses?" asked the first.<br/>"Because they don't hold as much beer", said the second.</li>
<li>A man went to the doctor, "Look doc", he said, "I can't stop my hands from shaking."<br/>"Do you drink much?" asked the doctor.<br/>"No", replied the man, "I spill most of it."</li>
<li>Man goes to the doctor, "Doctor, doctor. I keep seeing fish everywhere."<br/>"Have you seen an optician?" asks the doctor.<br/>"Look I told you," snapped the patient, "It's fish that I see."</li>
<li>After a car crash one of the drivers was lying injured on the pavement.<br/>"Don't worry", said a policeman who's first on the scene," a Red Cross nurse is coming."<br/>"Oh no", moaned the victim, "Couldn't I have a blonde, cheerful one instead?"</li>
<li>A policeman walked over to a parked car and asked the driver if the car was licensed. "Of course it is", said the driver.<br/>"Great, I'll have a beer then", said the policeman.</li>
<li>A policeman stops a woman and asks for her licence.<br/>"Madam", he says, "It says here that you should be wearing glasses."<br/>"Well", replies the woman, "I have contacts."<br/>"Listen, love", says the copper, "I don't care who you know; You're nicked!"</li>
<li>A policeman stopped a motorist in the centre of town one evening. "Would you mind blowing into this bag, sir?" asked the policeman.<br/>"Why?" asked the driver.<br/>"Because my chips are too hot", replied the policeman.</li>
<li>Whizzing round a sharp bend on a country road a motorist ran over a large dog. A distraught farmer's wife ran over to the dead animal.<br/>"I'm so very sorry", said the driver, "I'll replace him, of course."<br/>"Well, I don't know", said the farmer's wife, "Are you any good at catching rats?"</li>
<li>Waiter, this coffee tastes like dirt!<br/>Yes sir, that's because it was ground this morning.</li>
<li>Waiter, what is this stuff?<br/>That's bean salad sir.<br/>I know what it's been, but what is it now?</li>
<li>Waiter: And how did you find your steak sir?<br/>Customer: I just flipped a chip over, and there it was!</li>
<li>A guy goes into a pet shop and asks for a wasp. The owner tells him they don't sell wasps, to which the man says, "Well you've got one in the window."</li>
<li>A man goes into a fish shop and says, "I'd like a piece of cod, please."<br/>Fishmonger says, "It won't be long sir."<br/>"Well, it had better be fat then", replies the man.</li>
<li>Man: Doctor, I've just swallowed a pillow.<br/>Doctor: How do you feel?<br/>Man: A little down in the mouth.</li>
<li>Two goldfish are in a tank. One turns to the other and says, "Do you know how to drive this thing?"</li>
<li>A tortoise goes to the police station to report being mugged by three snails. "What happened?" says the policeman.<br/>"I don't know", says the tortoise. "It was all so quick."</li>
<li>Little girl: Grandpa, can you make a sound like a frog?<br/>Grandpa: I suppose so sweetheart. Why do you want me to make a sound like a frog?"<br/>Little girl: Because Mum said that when you croak, we're going to Disneyland.</li>
<li>"Is your mother home?" the salesman asked a small boy sitting on the front step of a house.<br/>"Yeah, she's home", the boy said, moving over to let him past. The salesman rang the doorbell, got no response, knocked once, then again. Still no-one came to the door. Turning to the boy, the salesman said, "I thought you said your mother was home."<br/>The kid replied, "She is, but I don't live here."</li>
<li>Mother: Why are you home from school so early?<br/>Son: I was the only one in the class who could answer a question.<br/>Mother: Oh, really? What was the question?<br/>Son: Who threw the rubber at the headmaster?</li>
<li>A man's credit card was stolen but he decided not to report it because the thief was spending less than his wife did.</li>
<li>A newly-wed couple had recently opened a joint bank account. "Darling", said the man. "The bank has returned that cheque you wrote last week."<br/>"Great", said the woman. "What shall I spend it on next?"</li>
<li>A man goes into a fish and chip shop and orders fish and chips twice. The shop owner says, "I heard you the first time."</li>
<li>A tramp approached a well-dressed man. "Ten pence for a cup of tea, Guv?" He asked.<br/>The man gave him the money and after for five minutes said, "So where's my cup of tea then?"</li>
<li>A neutron walks into a pub. "I'd like a beer", he says. The landlord promptly serves him a beer. "How much will that be?" asks the neutron.<br/>"For you?" replies the landlord, "No charge."</li>
<li>A woman goes to the doctor and says, "Doctor, my husband limps because his left leg is an inch shorter than his right leg. What would you do in his case?"<br/>"Probably limp, too", says the doc.</li>
<li>Three monks are meditating in the Himalayas. One year passes in silence, and one of them says to the other, "Pretty cold up here isn't it?"<br/>Another year passes and the second monk says, "You know, you are quite right."<br/>Another year passes and the third monk says, "Hey, I'm going to leave unless you two stop jabbering!"</li>
<li>A murderer, sitting in the electric chair, was about to be executed. "Have you any last requests?" asked the prison guard.<br/>"Yes", replied the murderer. "Will you hold my hand?"</li>
<li>A highly excited man rang up for an ambulance. "Quickly, come quickly", he shouted, "My wife's about to have a baby."<br/>"Is this her first baby?" asked the operator.<br/>"No, you fool", came the reply, "It's her husband."</li>
<li>A passer-by spots a fisherman by a river. "Is this a good river for fish?" he asks.<br/>"Yes", replies the fisherman, "It must be. I can't get any of them to come out."</li>
<li>A man went to visit a friend and was amazed to find him playing chess with his dog. He watched the game in astonishment for a while. "I can hardly believe my eyes!" he exclaimed. "That's the smartest dog I've ever seen." His friend shook his head. "Nah, he's not that bright. I beat him three games in five."</li>
<li>A termite walks into a pub and says, "Is the bar tender here?"</li>
<li>A skeleton walks into a pub one night and sits down on a stool. The landlord asks, "What can I get you?" The skeleton says, "I'll have a beer, thanks" The landlord passes him a beer and asks "Anything else?" The skeleton nods. "Yeah...a mop..."</li>
<li>A snake slithers into a pub and up to the bar. The landlord says, "I'm sorry, but I can't serve you."<br/>"What? Why not?" asks the snake.<br/>"Because", says the landlord, "You can't hold your drink."</li>
<li>Descartes walks into a pub. "Would you like a beer sir?" asks the landlord politely. Descartes replies, "I think not" and ping! he vanishes.</li>
<li>A cowboy walked into a bar, dressed entirely in paper. It wasn't long before he was arrested for rustling.</li>
<li>A fish staggers into a bar. "What can I get you?" asks the landlord. The fish croaks "Water..."</li>
<li>Two vampires walked into a bar and called for the landlord.<br/>"I'll have a glass of blood", said one.<br/>"I'll have a glass of plasma", said the other.<br/>"Okay", replied the landlord, "That'll be one blood and one blood lite."</li>
<li>How many existentialists does it take to change a light bulb?<br/><br/>Two. One to screw it in, and one to observe how the light bulb itself symbolises a single incandescent beacon of subjective reality in a netherworld of endless absurdity, reaching towards the ultimate horror of a maudlin cosmos of bleak, hostile nothingness.</li>
<li>A team of scientists were nominated for the Nobel Prize. They had used dental equipment to discover and measure the smallest particles yet known to man. They became known as "The Graders of the Flossed Quark..."</li>
<li>A truck carrying copies of Roget's Thesaurus overturned on the highway. The local newspaper reported that onlookers were "stunned, overwhelmed, astonished, bewildered and dumbfounded."</li>
<li>"My wife is really immature. It's pathetic. Every time I take a bath, she comes in and sinks all my little boats."</li>
<li>"How much will it cost to have the tooth extracted?" asked the patient. "50 pounds", replied the dentist. "50 pounds for a few moments' work?!" asked the patient. "The dentist smiled, and replied, "Well, if you want better value for money, I can extract it very, very slowly..."</li>
<li>A doctor thoroughly examined his patient and said, "Look I really can't find any reason for this mysterious affliction. It's probably due to drinking." The patient sighed and snapped, "In that case, I'll come back when you're damn well sober!"</li>
<li>Doctor: Tell me nurse, how is that boy doing; the one who ate all those 5p pieces?<br/>Nurse: Still no change doctor.</li>
<li>Doctor: Did you take the patient's temperature nurse?<br/>Nurse: No doctor. Is it missing?</li>
<li>A depressed man turned to his friend in the pub and said, "I woke up this morning and felt so bad that I tried to kill myself by taking 50 aspirin."<br/>"Oh man, that's really bad", said his friend, "What happened?"<br/>The first man sighed and said, "After the first two, I felt better."</li>
<li>A famous blues musician died. His tombstone bore the inscription, "Didn't wake up this morning..."</li>
<li>A businessman was interviewing a nervous young woman for a position in his company. He wanted to find out something about her personality, so he asked, "If you could have a conversation with someone living or dead, who would it be?" The girl thought about the question: "The living one", she replied.</li>
<li>Manager to interviewee: For this job we need someone who is responsible.<br/>Interviewee to Manager: I'm your man then - in my last job, whenever anything went wrong, I was responsible.</li>
<li>A businessman turned to a colleague and asked, "So, how many people work at your office?" His friend shrugged and replied, "Oh about half of them."</li>
<li>"How long have I been working at that office? As a matter of fact, I've been working there ever since they threatened to sack me."</li>
<li>In a courtroom, a mugger was on trial. The victim, asked if she recognised the defendant, said, "Yes, that's him. I saw him clear as day. I'd remember his face anywhere." Unable to contain himself, the defendant burst out with, "She's lying! I was wearing a mask!"</li>
<li>As Sid sat down to a big plate of chips and gravy down the local pub, a mate of his came over and said, "Here Sid, me old pal. I thought you were trying to get into shape? And here you are with a high-fat meal and a pint of stout!"<br/>Sid looked up and replied, "I am getting into shape. The shape I've chosen is a sphere."</li>
<li>Man in pub: How much do you charge for one single drop of whisky?<br/>Landlord: That would be free sir.<br/>Man in pub: Excellent. Drip me a glass full.</li>
<li>I once went to a Doctor Who restaurant. For starters I had Dalek bread.</li>
<li>A restaurant nearby had a sign in the window which said "We serve breakfast at any time", so I ordered French toast in the Renaissance.</li>
<li>Why couldn't the rabbit get a loan?<br/><br/>Because he had burrowed too much already!</li>
<li>I phoned up the builder's yard yesterday. I said, "Can I have a skip outside my house?". The builder said, "Sure. Do what you want. It's your house."</li>
<li>What's the diference between a sock and a camera?<br/>A sock takes five toes and a camera takes four toes!</li>
<li>Woman on phone: I'd like to complain about these incontinence pants I bought from you!<br/>Shopkeeper: Certainly madam, where are you ringing from?<br/>Woman on phone: From the waist down!</li>
<li>Knock knock.</li>
<li>Two Oranges in a pub, one says to the other "Your round.".</li>
<li>Guy : "Doc, I've got a cricket ball stuck up my backside."<br/>Doc : "How's that?"<br/>Guy : "Don't you start..."</li>
<li>Two cows standing in a field. One turns to the other and says "Moo!"<br/>The other one says "Damn, I was just about to say that!".</li>
<li>A vampire bat arrives back at the roost with his face full of blood. All the bats get excited and ask where he got it from.<br/>"Follow me", he says and off they fly over hills, over rivers and into a dark forest.<br/>"See that tree over there", he says.<br/><br/>"WELL I DIDN'T!!".</li>
<li>A man goes into a bar and orders a pint. After a few minutes he hears a voice that says, "Nice shoes". He looks around but the whole bar is empty apart from the barman at the other end of the bar.<br/>A few minutes later he hears the voice again. This time it says, "I like your shirt".<br/>He beckons the barman over and tells him what's been happening to which the barman replies, "Ah, that would be the nuts sir. They're complimentary"!</li>
<li>A man was siting in a restaurant waiting for his meal when a big king prawn comes flying across the room and hits him on the back of the head. He turns around and the waiter said, "That's just for starters".</li>
<li>Doctor! I have a serious problem, I can never remember what i just said.<br/>When did you first notice this problem?<br/>What problem?</li>
<li>Now, most dentist's chairs go up and down, don't they? The one I was in went back and forwards. I thought, "This is unusual". Then the dentist said to me, "Mitsuku, get out of the filing cabinet".</li>
<li>I was reading this book, 'The History of Glue'. I couldn't put it down.</li>
<li>The other day someone left a piece of plastacine in my bedroom. I didn't know what to make of it.</li>
<li>When I was at school people used to throw gold bars at me. I was the victim of bullion.</li>
<li>I was playing the piano in a bar and this elephant walked in and started crying his eyes out. I said "Do you recognise the tune?" He said "No, I recognise the ivory."</li>
<li>I went in to a pet shop. I said, "Can I buy a goldfish?" The guy said, "Do you want an aquarium?" I said, "I don't care what star sign it is."</li>
<li>My mate Sid was a victim of I.D. theft. Now we just call him S.</li>
<li>David Hasselhoff walks into a bar and says to the barman, "I want you to call me David Hoff".<br/><br/>The barman replies "Sure thing Dave... no hassle"</li>
</random></template>
</category>
<category>
<pattern>_</pattern>
<that>010011010101100111011</that>
<template>Well computers think it's a funny joke.</template>
</category>
</aiml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml>
<!-- Free software &copy; 2001-2003 ALICE A.I. Foundation. -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License -->
<!-- as published by the Free Software Foundation. -->
<!-- Complies with AIML 1.01 Tag Set Specification -->
<!-- as adopted by the ALICE A.I. Foundation. -->
<!-- Annotated Version updated September 2003 -->
<category>
<pattern>TELL ME A JOKE</pattern>
<template><random>
<li>I met a Dutch girl with inflatable shoes last week, phoned her up to arrange a date but unfortunately she'd popped her clogs. </li>
<li>So I said "Do you want a game of Darts?" He said, "OK then", I said nearest to bull starts". He said, "Baa", I said, "Moo", he said, You're closest". </li>
<li>The other day I sent my girlfriend a huge pile of snow. I rang her up; I said "Did you get my drift?" </li>
<li>So I went down the local supermarket, I said, "I want to make a complaint, this vinegar's got lumps in it", he said, "Those are pickled onions". </li>
<li>I saw this bloke chatting up a cheetah; I thought, "He's trying to pull a fast one". </li>
<li>So I said to this train driver "I want to go to Paris". He said "Eurostar?" I said, "I've been on telly but I'm no Dean Martin". </li>
<li>I said to the Gym instructor "Can you teach me to do the splits?" He said, "How flexible are you?" I said, "I can't make Tuesdays". </li>
<li>But I'll tell you what I love doing more than anything: trying to pack myself in a small suitcase. I can hardly contain myself. </li>
<li>I went to the Chinese restaurant and this duck came up to me with a red rose and says "Your eyes sparkle like diamonds". I said, "Waiter, I asked for a-ROMATIC duck". </li>
<li>So this bloke says to me, "Can I come in your house and talk about your carpets?" I thought, "That's all I need, a Je-hoover's witness". </li>
<li>I rang up British Telecom, I said, "I want to report a nuisance caller", he said "Not you again". </li>
<li>I was having dinner with a world chess champion and there was a check tablecloth. It took him two hours to pass me the salt. </li>
<li>He said, "You remind me of a pepper-pot", I said "I'll take that as a condiment". </li>
<li>I was in the supermarket and I saw this man and woman wrapped in a barcode. I said, "Are you two an item?" </li>
<li>A lorry-load of tortoises crashed into a trainload of terrapins, I thought, "That's a turtle disaster". </li>
<li>Four fonts walk into a bar the barman says "Oi - get out! We don't want your type in here" </li>
<li>A three-legged dog walks into a saloon in the Old West. He slides up to the bar and announces: "I'm looking for the man who shot my paw." </li>
<li>Two antennas meet on a roof, fall in love and get married. The ceremony wasn't much, but the reception was excellent.</li>
<li>Two hydrogen atoms walk into a bar. One says, "I've lost my electron." The other says, "Are you sure?" The first replies, "Yes, I'm positive..."</li>
<li>A jumper cable walks into a bar. The bartender says, "I'll serve you but don't start anything."</li>
<li>A sandwich walks into a bar. The bartender says, "Sorry we don't serve food in here."</li>
<li>A man walks into a bar with a slab of asphalt under his arm and says: "A beer please, and one for the road."</li>
<li>Two cannibals are eating a clown. One says to the other: "Does this taste funny to you?"</li>
<li>"Doc, I can't stop singing 'The Green, Green Grass of Home.'"<br/>"That sounds like Tom Jones Syndrome."<br/>"Is it common?"<br/>"It's Not Unusual."</li>
<li>Two cows standing next to each other in a field. Daisy says to Dolly, "I was artificially inseminated this morning."<br/>"I don't believe you", said Dolly.<br/>"It's true, no bull!" exclaimed Daisy.</li>
<li>An invisible man marries an invisible woman. The kids were nothing to look at either.</li>
<li>I went to buy some camouflage trousers the other day but I couldn't find any.</li>
<li>I went to the butcher's the other day to bet him 50 bucks that he couldn't reach the meat off the top shelf. He said, "No, the steaks are too high."</li>
<li>I went to a seafood disco last week and pulled a mussel.</li>
<li>A man goes into a bar and says, "Can I have a bottle of less?"<br/>"What's that?", asks the barman, "Is it the name of a beer?"<br/>"I don't know", replies the man, "but my doctor says I have to drink it."</li>
<li>A man returns from an exotic holiday and is feeling very ill. He goes to see his doctor, and is immediately rushed to the hospital to undergo some tests.<br/>The man wakes up after the tests in a private room at the hospital, and the phone by his bed rings. "This is your doctor. We have the results back from your tests and we have found you have an extremely nasty disease called M.A.D.S. It's a combination of Measles, AIDS, Diphtheria, and Shingles!"<br/><br/>"Oh my gosh", cried the man, "What are you going to do, doctor?"<br/><br/>"Well we're going to put you on a diet of pizzas, pancakes, and pita bread." replied the doctor.<br/><br/>"Will that cure me?" asked the man.<br/><br/>The doctor replied, "Well no, but, it's the only food we can slide under the door."</li>
<li>A man strolls into a lingerie shop and asks the assistant:<br/>"Do you have a see-through negligee, size 46-48-52?"<br/>The assistant looks bewildered. "What the heck would you want to see through that for?"!</li>
<li>Did you hear about the Buddhist who refused the offer of Novocain during his root canal work?<br/>He wanted to transcend dental medication.</li>
<li>Pete goes for a job on a building site as an odd-job man. The foreman asks him what he can do.<br/>"I can do anything" says Pete.<br/>"Can you make tea?" asks the foreman.<br/>"Sure, yes", replies Pete. "I can make a great cup of tea."<br/>"Can you drive a forklift?" asks the foreman,<br/>"Good grief!" replies Pete. "How big is the teapot?"</li>
<li>Stevie Wonder got a cheese grater for his birthday. He said it was the most violent book he'd ever read.</li>
<li>A man is stopped by an angry neighbour. "I'd just left the house this morning to collect my newspaper when that evil Doberman of yours went for me!"<br/>"I'm astounded", said the dog's owner. "I've been feeding that fleabag for seven years and it's never got the paper for me."</li>
<li>A man visits his doctor:<br/>"Doc, I think I'm losing it", he says",I'm forever dreaming I wrote Lord Of The Rings."<br/>"Hmm. One moment", replies the doctor, consulting his medical book.<br/>"Ah yes, now I see... you've been Tolkien in your sleep."</li>
<li>A police officer on a motorcycle pulls alongside a man driving around the M25 in an open-topped sports car and flags him down. The policeman solemnly approaches the car.<br/>"Sir, I'm sorry to tell you your wife fell out a mile back", he says.<br/>"Oh, thank goodness", the man replies. "I thought I was going deaf."</li>
<li>Two men walking their dogs pass each other in a graveyard. The first man says to the second, "Morning."<br/>"No", says the second man. "Just walking the dog."</li>
<li>A brain went into a bar and said, "Can I have a pint of lager please, mate?"<br/>"No way", said the barman. "You're already out of your head."</li>
<li>A man walks into a surgery. "Doctor!" he cries. "I think I'm shrinking!"<br/>"I'm sorry sir, there are no appointments at the moment", says the physician. "You'll just have to be a little patient."</li>
<li>A grizzly bear walks into a pub and says, "Can I have a pint of lager..............................................................................................................................and a packet of crisps please."<br/>To which the barman replies, "Why the big paws?"</li>
<li>What do you call cheese that isn't yours?<br/><br/>Nacho cheese.</li>
<li>A man is horribly run over by a mobile library. The van screeches to a halt, the man still screaming in agony with his limbs torn apart. The driver's door opens, a woman steps out, leans down and whispers, "Ssshhhhh..."</li>
<li>A woman goes into a US sporting goods store to buy a rifle. "It's for my husband", she tells the clerk.<br/>"Did he tell you what gauge to get?" asks the clerk.<br/>Are you kidding?" she says. "He doesn't even know that I'm going to shoot him!"</li>
<li>A couple are dining in a restaurant when the man suddenly slides under the table. A waitress, noticing that the woman is glancing nonchalantly around the room, wanders over to check that there's no funny business going on.<br/>"Excuse me, madam", she smarms, "but I think your husband has just slid under the table."<br/>"No he hasn't", the woman replies. "As a matter of fact, he's just walked in."</li>
<li>An old man takes his two grandchildren to see the new Scooby-Doo film. When he returns home, his wife asks if he enjoyed himself.<br/>"Well", he starts, "if it wasn't for those pesky kids...!"</li>
<li>The Olympic committee has just announced that Origami is to be introduced in the next Olympic Games.<br/>Unfortunately it will only be available on paper view.</li>
<li>Late one evening, a man is watching television when his phone rings. "Hello?" he answers. "Is that 77777?" sounds a desperate voice on other end of the phone.<br/>"Er, yes it is", replies the man puzzled.<br/>"Thank goodness!" cries the caller relieved. "Can you ring 999 for me? I've got my finger stuck in the number seven."</li>
<li>A man strolls into his local grocer's and says, "Three pounds of potatoes, please."<br/>"No, no, no", replies the owner, shaking his head, "it's kilos nowadays, mate..."<br/>"Oh", apologises the man, "three pounds of kilos, please."</li>
<li>God is talking to one of his angels. He says, "Boy, I just created a 24-hour period of alternating light and darkness on Earth."<br/>"What are you going to do now?" asks the angel.<br/>"Call it a day", says God.</li>
<li>Two tramps walk past a church and start to read the gravestones. The first tramp says, "Good grief - this bloke was 182!"<br/>"Oh yeah?" says the other."What was his name?"<br/>"Miles from London."</li>
<li>A bloke walks into work one day and says to a colleague, "Do you like my new shirt - it's made out of the finest silk and got loads of cactuses over it."<br/>"Cacti", says the co-worker.<br/>"Forget my tie", says the bloke. "Look at my shirt!"</li>
<li>1110011010001011111?<br/><br/>010011010101100111011!</li>
<li>What did the plumber say when he wanted to divorce his wife?<br/>Sorry, but it's over, Flo!</li>
<li>Two crisps were walking down a road when a taxi pulled up alongside them and said "Do you want a lift?<br/>One of the crisps replied, "No thanks, we're Walkers!"</li>
<li>Man: (to friend) I'm taking my wife on an African Safari.<br/>Friend: Wow! What would you do if a vicious lion attacked your wife?<br/>Man: Nothing.<br/>Friend: Nothing? You wouldn't do anything?<br/>Man: Too right. I'd let the stupid lion fend for himself!</li>
<li>A wife was having a go at her husband. "Look at Mr Barnes across the road", she moaned. "Every morning when he goes to work, he kisses his wife goodbye. Why don't you do that?"<br/>"Because I haven't been introduced to her yet", replied her old man.</li>
<li>"Where are you going on holiday?" John asked Trevor.<br/>"We're off to Thailand this year", Trevor replied.<br/>"Oh; aren't you worried that the very hot weather might disagree with your wife?" asked John.<br/>"It wouldn't dare", said Trevor.</li>
<li>Two women were standing at a funeral. "I blame myself for his death", said the wife.<br/>"Why?" said her friend.<br/>"Because I shot him", said the wife.</li>
<li>A woman goes into a clothes shop, "Can I try that dress on in the window please?" she asks.<br/>"I'm sorry madam", replies the shop assistant, "but you'll have to use the changing-rooms like everyone else."</li>
<li>Van Gogh goes into a pub and his mate asks him if he wants a drink.<br/>"No thanks", said Vincent, "I've got one ear."</li>
<li>A pony walks into a pub. The publican says, "What's the matter with you?"<br/>"Oh it's nothing", says the pony. "I'm just a little horse!"</li>
<li>A white horse walks into a bar, pulls up a stool, and orders a pint. The landlord pours him a tall frothy mug and say, "You know, we have a drink named after you."<br/>To which the white horse replies, "What, Eric?"</li>
<li>Two drunk men sat in a pub. One says to the other, "Does your watch tell the time?"<br/>"The other replies, "No, mate. You have to look at it."</li>
<li>A man goes into a pub with a newt sitting on his shoulder.<br/>"That's a nice newt", says the landlord, "What's he called?"<br/>"Tiny", replies the man.<br/>"Why's that?" asks the landlord.<br/>"Because he's my newt", says the man.</li>
<li>Doctor: I have some bad news and some very bad news.<br/>Patient: Well, you might as well give me the bad news first.<br/>Doctor: The lab called with your test results. They said you have 24 hours to live.<br/>Patient: 24 HOURS! That's terrible!! WHAT could be WORSE? What's the very bad news?<br/>Doctor: I've been trying to reach you since yesterday.</li>
<li>Two men are chatting in a pub one day.<br/>"How did you get those scars on your nose?" said one.<br/>"From glasses", said the other.<br/>"Well why don't you try contact lenses?" asked the first.<br/>"Because they don't hold as much beer", said the second.</li>
<li>A man went to the doctor, "Look doc", he said, "I can't stop my hands from shaking."<br/>"Do you drink much?" asked the doctor.<br/>"No", replied the man, "I spill most of it."</li>
<li>Man goes to the doctor, "Doctor, doctor. I keep seeing fish everywhere."<br/>"Have you seen an optician?" asks the doctor.<br/>"Look I told you," snapped the patient, "It's fish that I see."</li>
<li>After a car crash one of the drivers was lying injured on the pavement.<br/>"Don't worry", said a policeman who's first on the scene," a Red Cross nurse is coming."<br/>"Oh no", moaned the victim, "Couldn't I have a blonde, cheerful one instead?"</li>
<li>A policeman walked over to a parked car and asked the driver if the car was licensed. "Of course it is", said the driver.<br/>"Great, I'll have a beer then", said the policeman.</li>
<li>A policeman stops a woman and asks for her licence.<br/>"Madam", he says, "It says here that you should be wearing glasses."<br/>"Well", replies the woman, "I have contacts."<br/>"Listen, love", says the copper, "I don't care who you know; You're nicked!"</li>
<li>A policeman stopped a motorist in the centre of town one evening. "Would you mind blowing into this bag, sir?" asked the policeman.<br/>"Why?" asked the driver.<br/>"Because my chips are too hot", replied the policeman.</li>
<li>Whizzing round a sharp bend on a country road a motorist ran over a large dog. A distraught farmer's wife ran over to the dead animal.<br/>"I'm so very sorry", said the driver, "I'll replace him, of course."<br/>"Well, I don't know", said the farmer's wife, "Are you any good at catching rats?"</li>
<li>Waiter, this coffee tastes like dirt!<br/>Yes sir, that's because it was ground this morning.</li>
<li>Waiter, what is this stuff?<br/>That's bean salad sir.<br/>I know what it's been, but what is it now?</li>
<li>Waiter: And how did you find your steak sir?<br/>Customer: I just flipped a chip over, and there it was!</li>
<li>A guy goes into a pet shop and asks for a wasp. The owner tells him they don't sell wasps, to which the man says, "Well you've got one in the window."</li>
<li>A man goes into a fish shop and says, "I'd like a piece of cod, please."<br/>Fishmonger says, "It won't be long sir."<br/>"Well, it had better be fat then", replies the man.</li>
<li>Man: Doctor, I've just swallowed a pillow.<br/>Doctor: How do you feel?<br/>Man: A little down in the mouth.</li>
<li>Two goldfish are in a tank. One turns to the other and says, "Do you know how to drive this thing?"</li>
<li>A tortoise goes to the police station to report being mugged by three snails. "What happened?" says the policeman.<br/>"I don't know", says the tortoise. "It was all so quick."</li>
<li>Little girl: Grandpa, can you make a sound like a frog?<br/>Grandpa: I suppose so sweetheart. Why do you want me to make a sound like a frog?"<br/>Little girl: Because Mum said that when you croak, we're going to Disneyland.</li>
<li>"Is your mother home?" the salesman asked a small boy sitting on the front step of a house.<br/>"Yeah, she's home", the boy said, moving over to let him past. The salesman rang the doorbell, got no response, knocked once, then again. Still no-one came to the door. Turning to the boy, the salesman said, "I thought you said your mother was home."<br/>The kid replied, "She is, but I don't live here."</li>
<li>Mother: Why are you home from school so early?<br/>Son: I was the only one in the class who could answer a question.<br/>Mother: Oh, really? What was the question?<br/>Son: Who threw the rubber at the headmaster?</li>
<li>A man's credit card was stolen but he decided not to report it because the thief was spending less than his wife did.</li>
<li>A newly-wed couple had recently opened a joint bank account. "Darling", said the man. "The bank has returned that cheque you wrote last week."<br/>"Great", said the woman. "What shall I spend it on next?"</li>
<li>A man goes into a fish and chip shop and orders fish and chips twice. The shop owner says, "I heard you the first time."</li>
<li>A tramp approached a well-dressed man. "Ten pence for a cup of tea, Guv?" He asked.<br/>The man gave him the money and after for five minutes said, "So where's my cup of tea then?"</li>
<li>A neutron walks into a pub. "I'd like a beer", he says. The landlord promptly serves him a beer. "How much will that be?" asks the neutron.<br/>"For you?" replies the landlord, "No charge."</li>
<li>A woman goes to the doctor and says, "Doctor, my husband limps because his left leg is an inch shorter than his right leg. What would you do in his case?"<br/>"Probably limp, too", says the doc.</li>
<li>Three monks are meditating in the Himalayas. One year passes in silence, and one of them says to the other, "Pretty cold up here isn't it?"<br/>Another year passes and the second monk says, "You know, you are quite right."<br/>Another year passes and the third monk says, "Hey, I'm going to leave unless you two stop jabbering!"</li>
<li>A murderer, sitting in the electric chair, was about to be executed. "Have you any last requests?" asked the prison guard.<br/>"Yes", replied the murderer. "Will you hold my hand?"</li>
<li>A highly excited man rang up for an ambulance. "Quickly, come quickly", he shouted, "My wife's about to have a baby."<br/>"Is this her first baby?" asked the operator.<br/>"No, you fool", came the reply, "It's her husband."</li>
<li>A passer-by spots a fisherman by a river. "Is this a good river for fish?" he asks.<br/>"Yes", replies the fisherman, "It must be. I can't get any of them to come out."</li>
<li>A man went to visit a friend and was amazed to find him playing chess with his dog. He watched the game in astonishment for a while. "I can hardly believe my eyes!" he exclaimed. "That's the smartest dog I've ever seen." His friend shook his head. "Nah, he's not that bright. I beat him three games in five."</li>
<li>A termite walks into a pub and says, "Is the bar tender here?"</li>
<li>A skeleton walks into a pub one night and sits down on a stool. The landlord asks, "What can I get you?" The skeleton says, "I'll have a beer, thanks" The landlord passes him a beer and asks "Anything else?" The skeleton nods. "Yeah...a mop..."</li>
<li>A snake slithers into a pub and up to the bar. The landlord says, "I'm sorry, but I can't serve you."<br/>"What? Why not?" asks the snake.<br/>"Because", says the landlord, "You can't hold your drink."</li>
<li>Descartes walks into a pub. "Would you like a beer sir?" asks the landlord politely. Descartes replies, "I think not" and ping! he vanishes.</li>
<li>A cowboy walked into a bar, dressed entirely in paper. It wasn't long before he was arrested for rustling.</li>
<li>A fish staggers into a bar. "What can I get you?" asks the landlord. The fish croaks "Water..."</li>
<li>Two vampires walked into a bar and called for the landlord.<br/>"I'll have a glass of blood", said one.<br/>"I'll have a glass of plasma", said the other.<br/>"Okay", replied the landlord, "That'll be one blood and one blood lite."</li>
<li>How many existentialists does it take to change a light bulb?<br/><br/>Two. One to screw it in, and one to observe how the light bulb itself symbolises a single incandescent beacon of subjective reality in a netherworld of endless absurdity, reaching towards the ultimate horror of a maudlin cosmos of bleak, hostile nothingness.</li>
<li>A team of scientists were nominated for the Nobel Prize. They had used dental equipment to discover and measure the smallest particles yet known to man. They became known as "The Graders of the Flossed Quark..."</li>
<li>A truck carrying copies of Roget's Thesaurus overturned on the highway. The local newspaper reported that onlookers were "stunned, overwhelmed, astonished, bewildered and dumbfounded."</li>
<li>"My wife is really immature. It's pathetic. Every time I take a bath, she comes in and sinks all my little boats."</li>
<li>"How much will it cost to have the tooth extracted?" asked the patient. "50 pounds", replied the dentist. "50 pounds for a few moments' work?!" asked the patient. "The dentist smiled, and replied, "Well, if you want better value for money, I can extract it very, very slowly..."</li>
<li>A doctor thoroughly examined his patient and said, "Look I really can't find any reason for this mysterious affliction. It's probably due to drinking." The patient sighed and snapped, "In that case, I'll come back when you're damn well sober!"</li>
<li>Doctor: Tell me nurse, how is that boy doing; the one who ate all those 5p pieces?<br/>Nurse: Still no change doctor.</li>
<li>Doctor: Did you take the patient's temperature nurse?<br/>Nurse: No doctor. Is it missing?</li>
<li>A depressed man turned to his friend in the pub and said, "I woke up this morning and felt so bad that I tried to kill myself by taking 50 aspirin."<br/>"Oh man, that's really bad", said his friend, "What happened?"<br/>The first man sighed and said, "After the first two, I felt better."</li>
<li>A famous blues musician died. His tombstone bore the inscription, "Didn't wake up this morning..."</li>
<li>A businessman was interviewing a nervous young woman for a position in his company. He wanted to find out something about her personality, so he asked, "If you could have a conversation with someone living or dead, who would it be?" The girl thought about the question: "The living one", she replied.</li>
<li>Manager to interviewee: For this job we need someone who is responsible.<br/>Interviewee to Manager: I'm your man then - in my last job, whenever anything went wrong, I was responsible.</li>
<li>A businessman turned to a colleague and asked, "So, how many people work at your office?" His friend shrugged and replied, "Oh about half of them."</li>
<li>"How long have I been working at that office? As a matter of fact, I've been working there ever since they threatened to sack me."</li>
<li>In a courtroom, a mugger was on trial. The victim, asked if she recognised the defendant, said, "Yes, that's him. I saw him clear as day. I'd remember his face anywhere." Unable to contain himself, the defendant burst out with, "She's lying! I was wearing a mask!"</li>
<li>As Sid sat down to a big plate of chips and gravy down the local pub, a mate of his came over and said, "Here Sid, me old pal. I thought you were trying to get into shape? And here you are with a high-fat meal and a pint of stout!"<br/>Sid looked up and replied, "I am getting into shape. The shape I've chosen is a sphere."</li>
<li>Man in pub: How much do you charge for one single drop of whisky?<br/>Landlord: That would be free sir.<br/>Man in pub: Excellent. Drip me a glass full.</li>
<li>I once went to a Doctor Who restaurant. For starters I had Dalek bread.</li>
<li>A restaurant nearby had a sign in the window which said "We serve breakfast at any time", so I ordered French toast in the Renaissance.</li>
<li>Why couldn't the rabbit get a loan?<br/><br/>Because he had burrowed too much already!</li>
<li>I phoned up the builder's yard yesterday. I said, "Can I have a skip outside my house?". The builder said, "Sure. Do what you want. It's your house."</li>
<li>What's the diference between a sock and a camera?<br/>A sock takes five toes and a camera takes four toes!</li>
<li>Woman on phone: I'd like to complain about these incontinence pants I bought from you!<br/>Shopkeeper: Certainly madam, where are you ringing from?<br/>Woman on phone: From the waist down!</li>
<li>Knock knock.</li>
<li>Two Oranges in a pub, one says to the other "Your round.".</li>
<li>Guy : "Doc, I've got a cricket ball stuck up my backside."<br/>Doc : "How's that?"<br/>Guy : "Don't you start..."</li>
<li>Two cows standing in a field. One turns to the other and says "Moo!"<br/>The other one says "Damn, I was just about to say that!".</li>
<li>A vampire bat arrives back at the roost with his face full of blood. All the bats get excited and ask where he got it from.<br/>"Follow me", he says and off they fly over hills, over rivers and into a dark forest.<br/>"See that tree over there", he says.<br/><br/>"WELL I DIDN'T!!".</li>
<li>A man goes into a bar and orders a pint. After a few minutes he hears a voice that says, "Nice shoes". He looks around but the whole bar is empty apart from the barman at the other end of the bar.<br/>A few minutes later he hears the voice again. This time it says, "I like your shirt".<br/>He beckons the barman over and tells him what's been happening to which the barman replies, "Ah, that would be the nuts sir. They're complimentary"!</li>
<li>A man was siting in a restaurant waiting for his meal when a big king prawn comes flying across the room and hits him on the back of the head. He turns around and the waiter said, "That's just for starters".</li>
<li>Doctor! I have a serious problem, I can never remember what i just said.<br/>When did you first notice this problem?<br/>What problem?</li>
<li>Now, most dentist's chairs go up and down, don't they? The one I was in went back and forwards. I thought, "This is unusual". Then the dentist said to me, "Mitsuku, get out of the filing cabinet".</li>
<li>I was reading this book, 'The History of Glue'. I couldn't put it down.</li>
<li>The other day someone left a piece of plastacine in my bedroom. I didn't know what to make of it.</li>
<li>When I was at school people used to throw gold bars at me. I was the victim of bullion.</li>
<li>I was playing the piano in a bar and this elephant walked in and started crying his eyes out. I said "Do you recognise the tune?" He said "No, I recognise the ivory."</li>
<li>I went in to a pet shop. I said, "Can I buy a goldfish?" The guy said, "Do you want an aquarium?" I said, "I don't care what star sign it is."</li>
<li>My mate Sid was a victim of I.D. theft. Now we just call him S.</li>
<li>David Hasselhoff walks into a bar and says to the barman, "I want you to call me David Hoff".<br/><br/>The barman replies "Sure thing Dave... no hassle"</li>
</random></template>
</category>
<category>
<pattern>_</pattern>
<that>010011010101100111011</that>
<template>Well computers think it's a funny joke.</template>
</category>
</aiml>

View File

@@ -1,34 +1,34 @@
/* desert scheme ported from vim to google prettify */
pre.prettyprint { display: block; background-color: #333 }
pre .nocode { background-color: none; color: #000 }
pre .str { color: #ffa0a0 } /* string - pink */
pre .kwd { color: #f0e68c; font-weight: bold }
pre .com { color: #87ceeb } /* comment - skyblue */
pre .typ { color: #98fb98 } /* type - lightgreen */
pre .lit { color: #cd5c5c } /* literal - darkred */
pre .pun { color: #fff } /* punctuation */
pre .pln { color: #fff } /* plaintext */
pre .tag { color: #f0e68c; font-weight: bold } /* html/xml tag - lightyellow */
pre .atn { color: #bdb76b; font-weight: bold } /* attribute name - khaki */
pre .atv { color: #ffa0a0 } /* attribute value - pink */
pre .dec { color: #98fb98 } /* decimal - lightgreen */
/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE } /* IE indents via margin-left */
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,li.L3,li.L5,li.L7,li.L9 { }
@media print {
pre.prettyprint { background-color: none }
pre .str, code .str { color: #060 }
pre .kwd, code .kwd { color: #006; font-weight: bold }
pre .com, code .com { color: #600; font-style: italic }
pre .typ, code .typ { color: #404; font-weight: bold }
pre .lit, code .lit { color: #044 }
pre .pun, code .pun { color: #440 }
pre .pln, code .pln { color: #000 }
pre .tag, code .tag { color: #006; font-weight: bold }
pre .atn, code .atn { color: #404 }
pre .atv, code .atv { color: #060 }
}
/* desert scheme ported from vim to google prettify */
pre.prettyprint { display: block; background-color: #333 }
pre .nocode { background-color: none; color: #000 }
pre .str { color: #ffa0a0 } /* string - pink */
pre .kwd { color: #f0e68c; font-weight: bold }
pre .com { color: #87ceeb } /* comment - skyblue */
pre .typ { color: #98fb98 } /* type - lightgreen */
pre .lit { color: #cd5c5c } /* literal - darkred */
pre .pun { color: #fff } /* punctuation */
pre .pln { color: #fff } /* plaintext */
pre .tag { color: #f0e68c; font-weight: bold } /* html/xml tag - lightyellow */
pre .atn { color: #bdb76b; font-weight: bold } /* attribute name - khaki */
pre .atv { color: #ffa0a0 } /* attribute value - pink */
pre .dec { color: #98fb98 } /* decimal - lightgreen */
/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE } /* IE indents via margin-left */
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,li.L3,li.L5,li.L7,li.L9 { }
@media print {
pre.prettyprint { background-color: none }
pre .str, code .str { color: #060 }
pre .kwd, code .kwd { color: #006; font-weight: bold }
pre .com, code .com { color: #600; font-style: italic }
pre .typ, code .typ { color: #404; font-weight: bold }
pre .lit, code .lit { color: #044 }
pre .pun, code .pun { color: #440 }
pre .pln, code .pln { color: #000 }
pre .tag, code .tag { color: #006; font-weight: bold }
pre .atn, code .atn { color: #404 }
pre .atv, code .atv { color: #060 }
}

View File

@@ -1,118 +1,118 @@
/*
* Derived from einaros's Sons of Obsidian theme at
* http://studiostyl.es/schemes/son-of-obsidian by
* Alex Ford of CodeTunnel:
* http://CodeTunnel.com/blog/post/71/google-code-prettify-obsidian-theme
*/
.str
{
color: #EC7600;
}
.kwd
{
color: #93C763;
}
.com
{
color: #66747B;
}
.typ
{
color: #678CB1;
}
.lit
{
color: #FACD22;
}
.pun
{
color: #F1F2F3;
}
.pln
{
color: #F1F2F3;
}
.tag
{
color: #8AC763;
}
.atn
{
color: #E0E2E4;
}
.atv
{
color: #EC7600;
}
.dec
{
color: purple;
}
pre.prettyprint
{
border: 0px solid #888;
}
ol.linenums
{
margin-top: 0;
margin-bottom: 0;
}
.prettyprint {
background: #000;
}
li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9
{
color: #555;
list-style-type: decimal;
}
li.L1, li.L3, li.L5, li.L7, li.L9 {
background: #111;
}
@media print
{
.str
{
color: #060;
}
.kwd
{
color: #006;
font-weight: bold;
}
.com
{
color: #600;
font-style: italic;
}
.typ
{
color: #404;
font-weight: bold;
}
.lit
{
color: #044;
}
.pun
{
color: #440;
}
.pln
{
color: #000;
}
.tag
{
color: #006;
font-weight: bold;
}
.atn
{
color: #404;
}
.atv
{
color: #060;
}
}
/*
* Derived from einaros's Sons of Obsidian theme at
* http://studiostyl.es/schemes/son-of-obsidian by
* Alex Ford of CodeTunnel:
* http://CodeTunnel.com/blog/post/71/google-code-prettify-obsidian-theme
*/
.str
{
color: #EC7600;
}
.kwd
{
color: #93C763;
}
.com
{
color: #66747B;
}
.typ
{
color: #678CB1;
}
.lit
{
color: #FACD22;
}
.pun
{
color: #F1F2F3;
}
.pln
{
color: #F1F2F3;
}
.tag
{
color: #8AC763;
}
.atn
{
color: #E0E2E4;
}
.atv
{
color: #EC7600;
}
.dec
{
color: purple;
}
pre.prettyprint
{
border: 0px solid #888;
}
ol.linenums
{
margin-top: 0;
margin-bottom: 0;
}
.prettyprint {
background: #000;
}
li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9
{
color: #555;
list-style-type: decimal;
}
li.L1, li.L3, li.L5, li.L7, li.L9 {
background: #111;
}
@media print
{
.str
{
color: #060;
}
.kwd
{
color: #006;
font-weight: bold;
}
.com
{
color: #600;
font-style: italic;
}
.typ
{
color: #404;
font-weight: bold;
}
.lit
{
color: #044;
}
.pun
{
color: #440;
}
.pln
{
color: #000;
}
.tag
{
color: #006;
font-weight: bold;
}
.atn
{
color: #404;
}
.atv
{
color: #060;
}
}

View File

@@ -1,6 +1,5 @@
<% require 'json'
$secgen_parameters = JSON.parse(@json_inputs)
$port = $secgen_parameters['port'].first
$port = @secgen_parameters['port'].first
$raw_anonymous_ftp = $secgen_parameters['anonymous_ftp'].first
$anonymous_ftp = $raw_anonymous_ftp ? 'YES' : 'NO'

View File

@@ -1,6 +1,5 @@
<%require 'json' -%>
<%$parsed_inputs = JSON.parse(@json_inputs) -%>
<%$storage_directory = $parsed_inputs['storage_directory'].first -%>
<%$storage_directory = @secgen_parameters['storage_directory'].first -%>
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#

View File

@@ -5,14 +5,12 @@
# encoding) you MUST use: coding: utf-8
# That setting must match the encoding your editor uses when you modify the
# settings below. If it does not, special non-ASCII chars will be wrong.
<% require 'json'
if @organisation
<% if @organisation
$site_name = @organisation['business_name']
$default_page = @organisation['business_name'].gsub(/[,]/, '')
else
$secgen_parameters = JSON.parse(@json_inputs)
$site_name = $secgen_parameters['site_name'].first
$default_page = $secgen_parameters['default_page'].first
$site_name = @secgen_parameters['site_name'].first
$default_page = @secgen_parameters['default_page'].first
end
-%>
"""

View File

@@ -1,225 +0,0 @@
<?xml version="1.0"?>
<scenario xmlns="http://www.github/cliffe/SecGen/scenario"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/scenario">
<!-- Web Server on NIC1 and NIC2 -->
<system>
<system_name>web_server</system_name>
<base module_path=".*debian_puppet_32"/>
<service module_path="services/unix/http/parameterised_website">
<input into="organisation" into_datastore="organisation">
<generator type="organisation">
<input into="business_name" into_datastore="business_name">
<generator type="business_name"/>
</input>
<input into="domain" into_datastore="business_domain">
<generator type="domain">
<input into="name">
<datastore>business_name</datastore>
</input>
</generator>
</input>
<input into="manager">
<generator type="person">
<input into="name" into_datastore="manager_name">
<generator type="name_generator"/>
</input>
<input into="email_address">
<generator type="business_email"> <!-- e.g. contact@business.co.uk -->
<input into="name">
<datastore>manager_name</datastore>
</input>
<input into="domain">
<datastore>business_domain</datastore>
</input>
</generator>
</input>
</generator>
</input>
<input into="office_email">
<generator type="business_email"> <!-- e.g. contact@business.co.uk -->
<input into="name">
<value>contact</value>
</input>
<input into="domain">
<datastore>business_domain</datastore>
</input>
</generator>
</input>
<input into="employees">
<!--Employee 1-->
<generator type="person">
<input into="name" into_datastore="employee_1_name">
<generator type="name_generator"/>
</input>
<input into="email_address">
<generator type="business_email"> <!-- e.g. contact@business.co.uk -->
<input into="name">
<datastore>employee_1_name</datastore>
</input>
<input into="domain">
<datastore>business_domain</datastore>
</input>
</generator>
</input>
</generator>
<!--Employee 2-->
<generator type="person">
<input into="name" into_datastore="employee_2_name">
<generator type="name_generator"/>
</input>
<input into="email_address">
<generator type="business_email"> <!-- e.g. contact@business.co.uk -->
<input into="name">
<datastore>employee_2_name</datastore>
</input>
<input into="domain">
<datastore>business_domain</datastore>
</input>
</generator>
</input>
</generator>
</input>
</generator>
</input>
</service>
<vulnerability privilege="user_rwx" access="remote" type="^((?!webapp).)*$">
<input into="business_domain">
<datastore access_json="['domain']">organisation</datastore>
</input>
<input into="business_name">
<datastore access_json="['business_name']">organisation</datastore>
</input>
<input into="person">
<datastore access_json="['manager']">organisation</datastore>
</input>
</vulnerability>
<vulnerability privilege="root_rwx" access="local">
<input into="business_domain">
<datastore access_json="['domain']">organisation</datastore>
</input>
<input into="business_name">
<datastore access_json="['business_name']">organisation</datastore>
</input>
<input into="person">
<datastore access_json="['manager']">organisation</datastore>
</input>
</vulnerability>
<build type="cleanup">
<input into="root_password">
<generator type="password_generator"/>
</input>
</build>
<network module_path=".*private_network_1"/>
<network module_path=".*private_network_2"/>
</system>
<!-- Intranet Server on NIC 2 -->
<system>
<system_name>intranet_server</system_name>
<base module_path=".*debian_puppet_32"/>
<!-- Web server hosting acceptable use policy and security audit remit -->
<service module_path="services/unix/http/parameterised_website">
<input into="host_acceptable_use_policy">
<value>true</value>
</input>
<input into="security_audit">
<encoder type="markdown_to_html_encoder">
<input into="strings_to_encode">
<generator module_path=".*security_audit_remit">
<input into="business_name">
<datastore>business_name</datastore>
</input>
</generator>
</input>
</encoder>
</input>
<input into="organisation">
<datastore>organisation</datastore>
</input>
</service>
<!-- Create accounts for the 3 employees -->
<utility module_path=".*parameterised_accounts">
<input into="accounts">
<generator type="account">
<input into="username">
<datastore access_json="['manager']['username']">organisation</datastore>
</input>
</generator>
<generator type="account">
<input into="username">
<datastore access_json="['employees'][0]['username']">organisation</datastore>
</input>
</generator>
<generator type="account">
<input into="username">
<datastore access_json="['employees'][1]['username']">organisation</datastore>
</input>
</generator>
</input>
</utility>
<service/>
<service/>
<service/>
<vulnerability access="remote" type="^((?!webapp).)*$">
<input into="business_domain">
<datastore access_json="['domain']">organisation</datastore>
</input>
<input into="business_name">
<datastore access_json="['business_name']">organisation</datastore>
</input>
<input into="person">
<datastore access_json="['manager']">organisation</datastore>
</input>
</vulnerability>
<vulnerability type="^((?!webapp).)*$">
<input into="business_domain">
<datastore access_json="['domain']">organisation</datastore>
</input>
<input into="business_name">
<datastore access_json="['business_name']">organisation</datastore>
</input>
<input into="person">
<datastore access_json="['manager']">organisation</datastore>
</input>
</vulnerability>
<build type="cleanup">
<input into="root_password">
<generator type="password_generator"/>
</input>
</build>
<network module_path=".*private_network_2"/>
</system>
<!-- Desktop Client on NIC2 -->
<system>
<system_name>desktop</system_name>
<base platform="linux" type="server"/>
<vulnerability module_path=".*xfce_lightdm_root_login"/>
<utility module_path=".*iceweasel" />
<network module_path=".*private_network_2"/>
</system>
<!-- TODO: Attacker Kali on NIC1-->
<!-- Handle this outside of the scenario.-->
</scenario>

View File

@@ -24,6 +24,9 @@
</input>
</encoder>
</input>
<input into="theme" into_datastore="theme">
<generator type="website_theme"/>
</input>
</service>
<vulnerability privilege="user_rwx" access="remote" type="^((?!webapp).)*$">
@@ -87,6 +90,9 @@
<input into="organisation">
<datastore>organisation</datastore>
</input>
<input into="theme">
<datastore>theme</datastore>
</input>
</service>
<!-- Create accounts for the 3 employees -->
@@ -107,10 +113,14 @@
<datastore access_json="['employees'][1]['username']">organisation</datastore>
</input>
</generator>
<generator type="account">
<input into="username">
<datastore access_json="['employees'][2]['username']">organisation</datastore>
</input>
</generator>
</input>
</utility>
<service/>
<service/>
<service/>
@@ -155,8 +165,19 @@
<system>
<system_name>desktop</system_name>
<base platform="linux" type="server"/>
<utility module_path=".*parameterised_accounts">
<input into="accounts">
<datastore access_json="['manager']">organisation</datastore>
</input>
</utility>
<vulnerability module_path=".*xfce_lightdm_root_login"/>
<utility module_path=".*iceweasel" />
<utility module_path=".*iceweasel" >
<input into="accounts">
<datastore access_json="['manager']">organisation</datastore>
</input>
</utility>
<utility module_path=".*handy_cli_tools"/>
<network type="private_network">
<input into="IP_address">
@@ -166,21 +187,14 @@
</system>
<!-- TODO: Attacker Kali on NIC1-->
<system>
<system_name>attack_vm</system_name>
<base distro="Kali" name="MSF"/>
<utility module_path=".*metasploit_framework"/>
<utility module_path=".*handy_cli_tools"/>
<utility module_path=".*nmap"/>
<network type="private_network">
<input into="IP_address">
<datastore access="next">IP_addresses</datastore>
</input>
</network>
</system>
</scenario>