UNDERCODE COMMUNITY
2.68K subscribers
1.23K photos
31 videos
2.65K files
80.1K links
πŸ¦‘ Undercode Cyber World!
@UndercodeCommunity


1️⃣ World first platform which Collect & Analyzes every New hacking method.
+ AI Pratice
@Undercode_Testing

2️⃣ Cyber & Tech NEWS:
@Undercode_News

3️⃣ CVE @Daily_CVE

✨ Web & Services:
β†’ Undercode.help
Download Telegram
Forwarded from UNDERCODE NEWS
The Annual Report on Personal Information Protection Overseas Trends-International organizations such as the UN and OECD.
#Analytiques
Forwarded from UNDERCODE NEWS
32GB memory fell to more than 600 manufacturers said: next year to raise prices again.
#Technologies
Forwarded from UNDERCODE NEWS
WMO Korea’s personal information leakage accident… Member attention.
#Leaks
Forwarded from UNDERCODE NEWS
E-waste is rampant, Britain bombards Apple and Amazon: you should take more responsibility.
#international
▁ β–‚ β–„ Uπ•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁

πŸ¦‘A GOOD COLLECTION OF RANSOMWARES:

1) WANNACRY
https://github.com/ytisf/theZoo/tree/master/malwares/Binaries/Ransomware.WannaCry

2) RAASNet
https://github.com/leonv024/RAASNet

3) MALWARES & RANSOMWARES:
https://github.com/fabrimagic72/malware-samples

4)A POC Windows crypto-ransomware (Academic)
https://github.com/mauri870/ransomware

5) A simple, fully python ransomware PoC
https://github.com/deadPix3l/CryptSky

6) Crypter
https://github.com/sithis993/Crypter

7) Various codes related to Ransomware Developement
https://github.com/roothaxor/Ransom

8) JavaRansomware
https://github.com/PanagiotisDrakatos/JavaRansomware

▁ β–‚ β–„ Uπ•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁
Forwarded from UNDERCODE NEWS
Phishing sites pretending to be public institutions are active... Needs countermeasures such as public relations.
#CyberAttacks
Forwarded from UNDERCODE NEWS
Genesis, intelligent car with improved convenience and safety with biometric technology.
#Technologies
Forwarded from UNDERCODE NEWS
Windows 10 will receive two feature updates next year: but in a different way.
#Updates
Forwarded from UNDERCODE NEWS
Tetris Effect: The classic game was reborn as a spectacular sensory experience not to be missed.
#Updates
▁ β–‚ β–„ Uπ•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁

πŸ¦‘Need to install pygame

1) The initialization interface displays a clock interface

2) Realize the movement of the hour, minute, and second hands according to the current time


import pygame, sys, random, math
from datetime import datetime
from pygame.locals import *


def print_text(font, x, y, text, color=(255, 255, 255)):
img_text = font.render(text, True, color)
screen.blit(img_text, (x, y))


pygame.init()

screen = pygame.display.set_mode((600, 500))
pygame.display.set_caption"

font1 = pygame.font.Font(None, 24)

pos_x = 300
pos_y = 250
radius = 250
r = random.randint(0, 255)
g = random.randint(0, 255)
b = random.randint(0, 255)

while True:
for event in pygame.event.get():
if event.type == QUIT:
sys.exit()
keys = pygame.key.get_pressed()
if keys[K_ESCAPE]:
sys.exit()
screen.fill((0, 0, 100))
color = r, g, b
pygame.draw.circle(screen, color, (pos_x, pos_y), radius, 6)

for i in range(1, 13):
angle = math.radians((360 / 12) * i - 90)
x = math.cos(angle) * (radius - 20) - 10
y = math.sin(angle) * (radius - 20) - 10
print_text(font1, pos_x + x, pos_y + y, str(i))

hour = datetime.today().hour % 12
hour_angle = math.radians((360 / 12) * hour - 90)
hour_x = math.cos(hour_angle) * (radius - 90)
hour_y = math.sin(hour_angle) * (radius - 90)
pygame.draw.line(screen, (255, 0, 0), (pos_x, pos_y), (pos_x + hour_x, pos_y + hour_y), 12)
minutes = datetime.today().minute
minutes_angle = math.radians((360 / 60) * minutes - 90)
minutes_x = math.cos(minutes_angle) * (radius - 70)
minutes_y = math.sin(minutes_angle) * (radius - 70)
pygame.draw.line(screen, (0, 255, 0), (pos_x, pos_y), (pos_x + minutes_x, pos_y + minutes_y), 8)
seconds = datetime.today().second
seconds_angle = math.radians((360 / 60) * seconds - 90)
seconds_x = math.cos(seconds_angle) * (radius - 30)
seconds_y = math.sin(seconds_angle) * (radius - 30)
pygame.draw.line(screen, (0, 0, 255), (pos_x, pos_y), (pos_x + seconds_x, + pos_y + seconds_y), 4)
pygame.draw.circle(screen, (255, 255, 255), (pos_x, pos_y), 10)

pygame.display.update()
@UndercodeTesting
▁ β–‚ β–„ Uπ•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁
Forwarded from UNDERCODE NEWS
European IT giant lost 50 million euros due to cyber attack.
#CyberAttacks
Forwarded from UNDERCODE NEWS
Nokia is planning to break into the market for notebooks and tablets. There are currently nine models ready.
#Technologies
▁ β–‚ β–„ Uπ•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁

πŸ¦‘Adding, Removing, and Granting Sudo Rights to Users on CentOS:

Log into the CentOS system as root or any user with sudo privileges.

First, let's add sudo privileges to the new user.

1) Add sudo users to CentOS

Let me create a new user named "senthil".

To do this, I will run the following command as root from the terminal:

# adduser senthil
Set a password for the new senthil user:

# passwd senthil
He is not yet authorized to perform any administrative tasks.
Let's check if the senthil user can use the sudo command:
# sudo -l -U senthil
Output example:

User senthil is not allowed to run sudo on centos8
That's right, it is not yet allowed to run sudo on my CentOS 8 system.
Let's give it sudo rights now.

2) Grant sudo privileges to users on CentOS.
To add a regular user to the sudoers group, you need to add him to the wheel group.

For those of you curious, wheel is a special group on some Unix-like operating systems.

All members of the wheel group are allowed to perform administrative tasks.

The Wheel group is similar to the sudo group on Debian based systems.

We can add users to sudoers in two ways.

The first way is to use the chmod command.

2.1. Adding users to sudoers using usermod command on CentOS
Now, let's grant sudo privileges to the newly created user β€œsenthil” by adding him to the wheel group using the usermod command as shown below:

# usermod -aG wheel senthil
Here -aG refers to the optional group.

In our case, this is the wheel group.

That's it, we have just granted sudo permissions to senthil.

Let's check if the user is in the sudoers list using the command:

# sudo -l -U senthil
Conclusion:

Matching Defaults entries for senthil on centos8:
!visiblepw, always_set_home, match_group_by_gid,
always_query_group_plugin, env_reset, env_keep="COLORS DISPLAY
HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR
USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE
LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY
LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL
LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY",
secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin

User senthil may run the following commands on centos8:
(ALL) ALL
As you can see in the last line of the above output, user "senthil" can now execute all commands.

2.2. Add users to sudoers by editing the sudoers config file on CentOS
Another way to add users to the sudoers list is to directly add him / her to the sudoers config file.

Edit the sudoers config file with the command:

# visudo
The system will open the / etc / sudoers file in your Vi editor or whatever you have in your $ PATH.

Scroll down until you find the following entry:

root ALL=(ALL) ALL
Add the following line immediately after the above entry:
senthil ALL=(ALL) ALL
Here the line ALL = (ALL) ALL indicates that the user "senthil" can execute any command on any host.
Replace β€œsenthil” with your username.
Save and close the file.
That's all.
The user β€œsenthil” has been added to the sudoers list.
2.3. Checking sudo users on CentOS
Log out of the current session and log in again as the newly created sudo user.

Alternatively, you can switch to another user directly without leaving your current session using the following command:

# sudo -i -u senthil
Now check if the user can perform any administrative task with sudo privileges:

$ sudo dnf update

3) Remove the sudo privileges from the CentOS user.
We can revoke sudo rights from a user without completely deleting their account.

To revoke sudo permissions from a user, simply run the following command as root:

# gpasswd -d senthil wheel

▁ β–‚ β–„ Uπ•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁