Felicity Throwback

March 19 2017

# #

A huge throwback to Felicity.

Pre-Felicity Fun

Before my own Felicity, I was busy with the Felicity of the year prior. That entire Felicity can be summed up as following. (Names Redacted.)

  • J! J!, he's our man, if he can't do it, no one can.
  • Generic Portal
    • felicity_threads_base
  • Felicity Is Fun
  • Laila
  • M changed the IP
  • Watashi Wa Happy!!
  • scoreboard.py
    • SELECT user_nick, user_score FROM base_user JOIN contest_submission JOIN contest_question WHERE submission_state = 'AC' AND base_user.id = submission_user_id AND submission_question_id = contest_question.id AND (user_access_level = question_level OR user_access_level = question_level + 1) GROUP BY user_nick ORDER BY user_score DESC, user_access_level DESC, submission_timestamp ASC;
  • The ice cream which was promised, but never given.
  • Rejudge :)
  • celery -l info -A felicity_threads_base worker
  • HUP bhej
  • SprinkleberryMuffin -
  • hait10 -
  • JibhA -
  • ghost_rider -
  • merci - 1
  • The girl who J forgot, who can also be Miranda Kerr :)
  • H, template me 404 haiku message ched mat!
  • H, static bana na.
  • is the scoreboard frozen
  • Cheaters get a score of -12
  • Dear portal makers and server admins and coordinators of Felicity '15, please keep in mind that there BC is not a pleasant thing to have in an international event. UG3 matters and all is nice, but don't forget that Felicity isn't UG3's. Whatever penalties you want to impose, please impose sensibly. From what I've heard, the code already has BC and you guys are fighting on the server and making more BC. I know it's not my place. But please. Get your shit together.
  • Cache In - Question 48
  • why are the servers in UTC

If that does not make any sense to you, don't worry. It's not meant to.

Felicity Fun

There is quite a fair bit of craziness involved in each Felicity. My own Felicity was no different. This is the list of the events that happened before, and during Felicity.

  • Hopeless {SA,TC,FC,The guy who makes things happen(BC)}
    • Hopeless Chhota Dhaga
  • "She is nice." – HH
  • felicity_threads_base
  • Please buy me a chip
  • Felicity Is Fun
  • NeetuForMP
  • Laila
  • Rejudge :)
  • HUP bhej
  • This is a private computer system and is the property of Felicity, IIIT Hyderabad. It is for authorized use only. Users (authorized or unauthorized) have no explicit or implicit expectation of privacy. Any or all uses of this system and all files on this system may be intercepted, monitored, recorded, copied, audited, inspected, and disclosed to authorized site personnel, law enforcement personnel, as well as authorized officials of other agencies. By using this system, the user consents to such interception, monitoring, recording, copying, auditing, inspection, and disclosure at the discretion of authorized UPS personnel. Unauthorized or improper use of this system may result in administrative disciplinary action and civil and criminal penalties. By continuing to use this system you indicate your awareness of and consent to these terms and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the conditions stated in this warning.
  • Content and Design Team
  • Phab
  • फेलिसिटी
  • get_magic_user
  • Fed-UP (Fedora Update)
    • 20 –> 21
    • 21 –> 22
    • 22 –> 23
  • HHVM
  • php7
    • Arch
  • Reflexive XSS somewhere
  • Yui
    • Ahri
    • Iroha
    • Mio
    • Shana
    • Asuka
    • Haruhi
    • Kurumi
    • Taiga
    • Holo
    • Hiyori
    • Sylphy
  • dhcpcd -4 eth0
  • Eru
  • Apache Benchmark
  • haproxy
    • 4 core benchmark
  • celery -l info -A felicity_threads_base worker
  • EXECUTE_COMMAND = 'sandbox -O 409600 -a1 -p /sys/devices/ -p /proc/ -p /usr/local/cuda/ -p /dev/=rw -p /etc/ld.so.preload -p /etc/ld.so.cache -p /etc/nvidia/ -p /lib/ -p /lib64/ -p /usr/lib/ -p /usr/lib64/ -p /usr/share/nvidia/ -p /tmp/=rw -f -s mprotect -s set_robust_list -s futex -s rt_sigaction -s rt_sigprocmask -s getrlimit -s process_vm_writev -s kcmp -s mq_open -s create_module -s init_module -s getxattr -s adjtimex -s sched_get_priority_max -s sched_get_priority_min -s clock_gettime -s statfs -s sysinfo -s pipe -s clone -s poll -s mkdir -s setrlimit -s setgroups -s getdents -s getcwd -s getpid -s accept -s rt_sigqueueinfo -E LD_LIBRARY_PATH=/usr/local/cuda/lib64 -m 524288 -t 300 -i ' + inpu + ' -o ' + '/tmp/submission.out' + ' -- ' + '/tmp/submission'
  • CAS karte hai
  • IST

Recommended Reading

Breaking Random Number Generators with Chosen Seed

# # # #

Find the flag.

Source is as follows

#!/usr/bin/env python3

import random
import time
import string
import signal

# use secure seed

with open('flag.txt') as f:
	flag = f.read()

# large constant prime
p = 174807157365465092731323561678522236549173502913317875393564963123330281052524687450754910240009920154525635325209526987433833785499384204819179549544106498491589834195860008906875039418684191252537604123129659746721614402346449135195832955793815709136053198207712511838753919608894095907732099313139446299843

Recommended Reading

ANSI Sequences in Output Without a TTY

# # # #

ANSI Sequences or ansi escape codes are special formatting characters used to inform a receiving terminal about special colors and formatting to use when displaying text. These sequences still remain in use to this day, with a lot of utilities supporting...