Posts

Showing posts from September, 2019

Common Vulnerabilities and Exposures

Image
CVE - Common Vulernabilities and Exposures: I have studied about cve, For all the devices like mobile, computer are have the software, computer operating system (windows, mac) and mobile operating system (android, ios) are update the software for regular interval on that update they have to patch the vulernabilities, that vulernabilities are named as CVE . CVE format  ----  CVE-year-code we can easily get the cve data about any devices through the type of device and model number ,  then we can get the cve number of server also using the shodan search engine, using the data cve we can get the  script to attack the devices which are not updated shodan - click here CVE - click here dear mobile users for each update they patch the bugs, if you not  update the mobile any hacker can reach you.  Be Safe. Thank You for visit. 

vowels in the file

Vowels in the File: Find the number of vowels in the file and add the count on the file . Program: f=open('a.txt','r') #a.txt (filename) total=0 for line in f.read():     if(line=='a' or line=='e' or line=='i' or line=='o' or line=='u' or line=='A' or line=='E' or line=='I' or line=='O' or line=='U'):         total+=1 f=open('a.txt','a') f.write('Number of vowels in the file :'+str(total)) f.close

Addition Game

Game using python:  It is two player game using addition. Concept: player1 start the game by saying number less than 10 , and player2 also need to say the number less than 10 , when the sum of number reach 100 the last person who said the number is wins the game. Program: p1=input('Enter player 1:') p2=input('Enter player 2:') total=0 while(1):     pi1=int(input('Player 1 Enter value: '))     if(pi1 <= 10):         total+=pi1         print(total)         if(total == 100):             print(p1+':wins')             break         else:             pi2=int(input('player 2 Enter value:'))             if(pi2 <= 10):                 total+=pi2                 print(total)                 if(total == 100):                     print(p2+':wins')                     break