The attack in Derry happened at a house in Creggan Heights
Two men have been injured in paramilitary-style shootings in Belfast and Londonderry on Wednesday night.
In the first attack, a 28-year-old man was walking in Twinbrook, close to St Luke's Church, when he was approached by four masked men.
They bundled him into a car and drove him to Poleglass where he was shot in both knees and his left ankle.
In Londonderry, a 26-year-old man was shot a number of times by four masked men in his home in Creggan Heights.
He received injuries to his left thigh, knee and ankle. He was also shot in the right calf.
Both men were taken to hospital for treatment, but their injuries are not thought to be life-threatening.
The police in Derry said the 26-year-old's assailants fired a number of shots in the air outside the house as they left.
Three women who were also in the house at the time of the attack were uninjured.
Sinn Fein have blamed dissident republicans for the attack in Derry.
"There is no groundswell of support for this," said councillor Kevin Campbell.
"I work in this area and I'm on the ground 24/7 and I can safely say 100% that there is no support for this type of action.
"I would say to these dissidents now, you need to be reining your horns in now," he said.
Parish priest Father Stephen McLaughlin said such attacks were "a form of oppression".
"These gangs are trying to insinuate themselves into the local community, perhaps under the guise of being some form of justice and dealing with perceived problems in a direct manner.
"This often seems to be what's behind shootings like this, but it's rather depressing," said Fr McLaughlin.
The mayor of Derry, Gerard Diver, said such acts of violence had no support from the community.
"My reaction is one of horror and sadness to hear that another act of brutality has been carried out in our local community.
"This is the second shooting in as many days, and I have no doubt the people of Creggan and the people of this city don't want this and totally reject this.
"I can't for the life of me understand what is going on in the heads of people who would perpetrate such acts of violence," he said.
It is the second such attack in the city in two days.
On Monday night a 37-year-old man was shot in both legs in Rosemount Gardens in Derry.