Day 08 solved
This commit is contained in:
		
							parent
							
								
									77fb10f708
								
							
						
					
					
						commit
						da1e60dc72
					
				
							
								
								
									
										20
									
								
								Day 08/decode.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										20
									
								
								Day 08/decode.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | ||||
| #!/usr/bin/python | ||||
| 
 | ||||
| import base64 | ||||
| import operator | ||||
| 
 | ||||
| strings = [ | ||||
|     b'SlQRUPXWVo\Vuv_n_\\ajjce', | ||||
|     b'QVXSZUVY\ZYYZ[a', | ||||
|     b'QOUW[VT^VY]bZ_', | ||||
|     b'SPPVSSYVV\YY_\\\\]', | ||||
|     b'RPQRSTUVWXYZ[\]^', | ||||
|     b'QTVWRSVUXW[_Z`\\b' | ||||
| ] | ||||
| 
 | ||||
| def decodeChar(c, i = 0): | ||||
|     return chr((int(c) - 30 - i) % 256) | ||||
| 
 | ||||
| for s in strings: | ||||
|     decoded = "".join([decodeChar(s[i], i) for i in range(len(s))]) | ||||
|     print(decoded) | ||||
							
								
								
									
										82
									
								
								Day 08/dump.sql
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										82
									
								
								Day 08/dump.sql
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,82 @@ | ||||
| -- MySQL dump 10.13  Distrib 5.7.19, for Win64 (x86_64) | ||||
| -- | ||||
| -- Host: localhost    Database: secureshopping | ||||
| -- ------------------------------------------------------ | ||||
| -- Server version	5.7.19-log | ||||
| 
 | ||||
| /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||||
| /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||||
| /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||||
| /*!40101 SET NAMES utf8 */; | ||||
| /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | ||||
| /*!40103 SET TIME_ZONE='+00:00' */; | ||||
| /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | ||||
| /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||||
| /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||||
| /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||||
| 
 | ||||
| -- | ||||
| -- Table structure for table `creditcards` | ||||
| -- | ||||
| 
 | ||||
| DROP TABLE IF EXISTS `creditcards`; | ||||
| /*!40101 SET @saved_cs_client     = @@character_set_client */; | ||||
| /*!40101 SET character_set_client = utf8 */; | ||||
| CREATE TABLE `creditcards` ( | ||||
|   `cc_id` int(11) NOT NULL AUTO_INCREMENT, | ||||
|   `cc_owner` varchar(64) DEFAULT NULL, | ||||
|   `cc_number` varchar(32) DEFAULT NULL, | ||||
|   `cc_expires` varchar(7) DEFAULT NULL, | ||||
|   PRIMARY KEY (`cc_id`) | ||||
| ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; | ||||
| /*!40101 SET character_set_client = @saved_cs_client */; | ||||
| 
 | ||||
| -- | ||||
| -- Dumping data for table `creditcards` | ||||
| -- | ||||
| 
 | ||||
| LOCK TABLES `creditcards` WRITE; | ||||
| /*!40000 ALTER TABLE `creditcards` DISABLE KEYS */; | ||||
| INSERT INTO `creditcards` VALUES  | ||||
| (1,'Sirius Black',':)QVXSZUVY\ZYYZ[a','12/2020'), | ||||
| (2,'Hermione Granger',':)QOUW[VT^VY]bZ_','04/2021'), | ||||
| (3,'Draco Malfoy',':)SPPVSSYVV\YY_\\]','05/2020'), | ||||
| (4,'Severus Snape',':)RPQRSTUVWXYZ[\]^','10/2020'), | ||||
| (5,'Ron Weasley',':)QTVWRSVUXW[_Z`\b','11/2020'); | ||||
| /*!40000 ALTER TABLE `creditcards` ENABLE KEYS */; | ||||
| UNLOCK TABLES; | ||||
| 
 | ||||
| -- | ||||
| -- Table structure for table `flags` | ||||
| -- | ||||
| 
 | ||||
| DROP TABLE IF EXISTS `flags`; | ||||
| /*!40101 SET @saved_cs_client     = @@character_set_client */; | ||||
| /*!40101 SET character_set_client = utf8 */; | ||||
| CREATE TABLE `flags` ( | ||||
|   `flag_id` int(11) NOT NULL AUTO_INCREMENT, | ||||
|   `flag_prefix` varchar(5) NOT NULL, | ||||
|   `flag_content` varchar(29) NOT NULL, | ||||
|   `flag_suffix` varchar(1) NOT NULL, | ||||
|   PRIMARY KEY (`flag_id`) | ||||
| ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; | ||||
| /*!40101 SET character_set_client = @saved_cs_client */; | ||||
| 
 | ||||
| -- | ||||
| -- Dumping data for table `flags` | ||||
| -- | ||||
| 
 | ||||
| LOCK TABLES `flags` WRITE; | ||||
| /*!40000 ALTER TABLE `flags` DISABLE KEYS */; | ||||
| INSERT INTO `flags` VALUES (1,'HV19{',':)SlQRUPXWVo\Vuv_n_\ajjce','}'); | ||||
| /*!40000 ALTER TABLE `flags` ENABLE KEYS */; | ||||
| UNLOCK TABLES; | ||||
| /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | ||||
| 
 | ||||
| /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||||
| /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||||
| /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | ||||
| /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||||
| /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||||
| /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | ||||
| /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user